correction erreurs vues sur errorlog apache

This commit is contained in:
Albirew 2016-11-16 23:23:59 +01:00
parent 6f612878a6
commit b772faee79
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ echo $_POST['avatar']."<br/>";
echo $_POST['contenu']."<br/>";
echo $_POST['pseudo']."<br/>";
echo $_POST['idMod']."<br/>";
echo $_POST['best']."<br/>";
if(isset($_POST['best'])) {echo $_POST['best']."<br/>";}
if(isset($_POST['titre']) AND isset($_POST['avatar']) AND isset($_POST['contenu']) AND isset($_POST['pseudo']) AND isset($_POST['idMod']))
{

View File

@ -1,6 +1,5 @@
<?php
include 'include/connexionBdd.php';
if(isset($_GET["pseudo"]) && !empty($_GET["pseudo"])){
$dossier = $bdd->prepare('SELECT * FROM membre WHERE pseudo = :pseu');
@ -10,10 +9,11 @@ if(isset($_GET["pseudo"]) && !empty($_GET["pseudo"])){
while($fmembre = $dossier->fetch(PDO::FETCH_ASSOC))
{
// concaténation des poles
$poste="";
if($fmembre['pole1']!="-") $poste="Traduction, ";
if($fmembre['pole2']!="-") $poste.="Correction, ";
if($fmembre['pole3']!="-")$poste.="Édition, ";
if($fmembre['pole4']!="-")$poste.="Développement, ";
if($fmembre['pole3']!="-") $poste.="Édition, ";
if($fmembre['pole4']!="-") $poste.="Développement, ";
$poste=substr($poste, 0, -2);