pocobueno1388 Posted February 5, 2008 Share Posted February 5, 2008 I don't see a "topicid" of 0. You need to also remove the single quotes around the 0 from this part of the query: topicid = '0'. Also take away the brackets. I need to get to bed. So any more help you need I will have to do in the morning (unless someone else comes). PID is Pilot ID. Why do I need to know that? Quote Link to comment https://forums.phpfreaks.com/topic/89474-solved-forum-limit-30/page/2/#findComment-458332 Share on other sites More sharing options...
maxudaskin Posted February 5, 2008 Author Share Posted February 5, 2008 Just incase you were wondering... I changed topicid to topic and it works... Thanks Quote Link to comment https://forums.phpfreaks.com/topic/89474-solved-forum-limit-30/page/2/#findComment-458338 Share on other sites More sharing options...
pocobueno1388 Posted February 5, 2008 Share Posted February 5, 2008 That means there is a problem with one of your queries again. Is this <?php $postssql = mysql_query("SELECT * FROM forum_posts WHERE topicid = '{$topicid}'") or die("Error ($POSTSQL): " . mysql_error());; $posts = mysql_num_rows($query); Supposed to be <?php $postssql = mysql_query("SELECT * FROM forum_posts WHERE topicid = '{$topicid}'") or die("Error ($POSTSQL): " . mysql_error());; $posts = mysql_num_rows($postssql); //Changed this line Quote Link to comment https://forums.phpfreaks.com/topic/89474-solved-forum-limit-30/page/2/#findComment-458341 Share on other sites More sharing options...
maxudaskin Posted February 5, 2008 Author Share Posted February 5, 2008 Yeah, just caught that.... thanks. Quote Link to comment https://forums.phpfreaks.com/topic/89474-solved-forum-limit-30/page/2/#findComment-458345 Share on other sites More sharing options...
maxudaskin Posted February 19, 2008 Author Share Posted February 19, 2008 How could I make it so it doesn't show all the page numbers, but show the first 4 and the last 4? Quote Link to comment https://forums.phpfreaks.com/topic/89474-solved-forum-limit-30/page/2/#findComment-470157 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.