Bonjour,
J'ai une erreur a ma ligne 12.. Quelqu'un peut m'aider SVP?
<?php
function afficher_articles()
{
$articles = array();
$query = mysql_query("SELECT * FROM WHERE id_article= '{$_GET['id']}'
");
while ($row = mysql_fetch_assoc($query)) {
$articles[] = $row;
}
return $articles;
}
function inserer_commentaire($pseudo,$commentaire) {
mysql_query("INSERT INTO commentaires VALUES('','{$_GET['id']}','$pseudo','$commentaire',NOW())");
}
function afficher_commentaires()
{
$commentaires = array();
$query = mysql_query("
SELECT * FROM commentaires WHERE id_article = '{$_GET['id']}' ORDER BY date
");
while ($row = mysql_fetch_assoc($query)) {
$commentaires[] = $row;
}
return $commentaires;
}
?>
Merci!
11 févr. 2015 à 18:10