sovit Posted July 14, 2013 Share Posted July 14, 2013 This code is displaying the number of post $nb_new_pm = mysql_fetch_array (mysql_query('select count(*) as nb_new_pm from pm where ((user_id="'.$_SESSION['userid'].'")) and id2="1"')); $nb_new_pm = $nb_new_pm ['nb_new_pm']; but when we display all post by that user this code shows only 1st post done by that user.. $nb_pm= mysql_fetch_array (mysql_query('select message as nb_pm from pm where ((user_id="'. $_SESSION['userid'].'")) and id2="1"')); $nb_pm = $nb_pm['nb_pm']; echo $nb_pm ; Please tell how to display all the post done by that user Link to comment https://forums.phpfreaks.com/topic/280140-unable-to-view-all-post/ Share on other sites More sharing options...
trq Posted July 14, 2013 Share Posted July 14, 2013 No. Link to comment https://forums.phpfreaks.com/topic/280140-unable-to-view-all-post/#findComment-1440664 Share on other sites More sharing options...
Barand Posted July 14, 2013 Share Posted July 14, 2013 mysql_fetch_array Plenty of examples Link to comment https://forums.phpfreaks.com/topic/280140-unable-to-view-all-post/#findComment-1440665 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.