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?

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

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.