Bonjours,
j'ai 2 notices sur firfox
Notice: Trying to get property of non-object in /var/www/legtux.org/users/site/modules/forum/function.inc.php on line 102
Notice: Trying to get property of non-object in /var/www/legtux.org/users/site/modules/forum/function.inc.php on line 106
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 $pseudo = sex2color(id2sex($res->forum_membre_id),$res->forum_membre_id); return "par " . $pseudo . "<br />".format_temps($res->post_time);
le code entier
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 function LastPostedBy($id=0, $memberId=1){ global $pdo; $sql = "SELECT * FROM forum_post WHERE topic_id=" . intval($id) . " ORDER BY post_time DESC LIMIT 1"; $q = $pdo->query($sql); $res = $q->fetch(PDO::FETCH_OBJ); $q->closeCursor(); $pseudo = sex2color(id2sex($res->forum_membre_id),$res->forum_membre_id); return "par " . $pseudo . "<br />".format_temps($res->post_time); }
merci de votre aide
Partager