Bonsoir et bonne année,

voila j'ai un forum avec l'index,un sous forum dans une autre page,quand je post l'update passe bien dans le sous forum mais quand je regarde dans l'index je n'ai rien
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
<?php
$query=$db->prepare('UPDATE forum_ss_forum SET forum_ss_post = forum_ss_post + 1 ,forum_ss_topic = forum_ss_topic + 1, 
        forum_ss_last_post_id = :nouveaupost
        WHERE forum_ss_id = :forum');
        $query->bindValue(':nouveaupost', (int) $nouveaupost, PDO::PARAM_INT);    
        $query->bindValue(':forum', (int) $forum, PDO::PARAM_INT);
        $query->execute();
		$query->CloseCursor();
 
 
 
        $query=$db->prepare('UPDATE forum_forum SET forum_post = forum_post + 1 ,forum_topic = forum_topic + 1, 
        forum_last_post_id = :nouveaupost
        WHERE forum_id = :forum');
        $query->bindValue(':nouveaupost', (int) $nouveaupost, PDO::PARAM_INT);    
        $query->bindValue(':forum', (int) $forum, PDO::PARAM_INT);
        $query->execute();
 
 
         $query=$db->prepare('UPDATE forum_membres SET membre_post = membre_post + 1 WHERE membre_id = :id');
        $query->bindValue(':id', $id, PDO::PARAM_INT);    
        $query->execute();
        $query->CloseCursor();
 
 
 
?>

je ne vous met pas tout le code car beaucoup trop long,l'update passe bien dans la table forum_ss_forum mais elle ne passe pas par la table forum_forum elle passe directement par l'update forum_membres.Quand j’enlève la requête sur l'update forum_ss_forum,sa marche bien,donc la table forum_forum reste vide mais pas la table forum_ss_forum et vice versa


merci pour l'aide