Jump to content

[SOLVED] Forum Limit 30


maxudaskin

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.