Skip to content
Extraits de code Groupes Projets
Valider 8b45ec83 rédigé par Imane ALLA's avatar Imane ALLA
Parcourir les fichiers

Merge remote-tracking branch 'origin/master'

parents 38df9a55 73297f22
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -2,6 +2,31 @@
<!-- https://jsfiddle.net/69ww31n3/ -->
<?php
include "./config/database.php";
$tag = $_GET["email"];
$influenceurs = $bdd->query("SELECT `nom_artiste`, `tag_youtube`, `tag_instagram` FROM `influenceurs` WHERE `nom_artiste`='$tag'");
if ($inf=$influenceurs->fetch()) {
if (isset($_GET["youtube"])) {
if (isset($_GET["instagram"])) {
if (!empty($inf['tag_youtube']) && !empty($inf['tag_instagram'])) {
header('Location: page_globale.php?user='.$tag);
}
}
else {
if (!empty($inf['tag_youtube'])) {
header('Location: youtube?user='.$inf['tag_youtube']);
}
}
}
else {
if (isset($_GET["instagram"])) {
if (!empty($inf['tag_instagram'])) {
header('Location: instagram-profil.php?user='.$inf['tag_instagram']);
}
}
}
}
include "header.php";
?>
......@@ -50,7 +75,6 @@ $(document).ready(function(){
<table class="table">
<tbody>
<?php
$tag = $_GET["email"];
/* récupération des données de la table influenceurs */
if ((isset($_GET["youtube"]) && isset($_GET["instagram"])) || (!isset($_GET["youtube"]) && !isset($_GET["instagram"]))) {
$result = $bdd->query("SELECT * FROM `influenceurs` WHERE `nom_artiste` LIKE '$tag%' OR `tag_youtube` LIKE '$tag%' OR `tag_instagram` LIKE '$tag%' ORDER BY `nom_artiste`");
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter