Jump to content

[SOLVED] mysql_num_rows


maxudaskin

Recommended Posts

Error:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/.grable/vzoom/virtualzoom.net/comm/forum_posts.php on line 333

Code:

<?php
while($forum_array = mysql_fetch_array($forum_query)){
							$forum_id = $forum_array['topicid'];
							$replies_sql = "SELECT * FROM forum_posts WHERE topicid = '{$forumid}";
							$replies_query = mysql_query($replies_sql,$conn);
							$replies = mysql_num_rows($replies_query); // Line 333

/* ... Code cut out */
?>

Link to comment
https://forums.phpfreaks.com/topic/73530-solved-mysql_num_rows/
Share on other sites

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.