Jump to content

[SOLVED] Not fetching


Bullet

Recommended Posts

I'm trying a MYSQL in PHP, here is the MYSQL code (correct):

 

$replys=mysql_num_rows(mysql_query("SELECT * FROM replys WHERE idto='$fo->id'"));

 

I'm trying to make it so I can get the number of replys id topic $fo->id. The MYSQL is fully correct. I have posted the outcome as:

 

 

echo"<td class='area'>$fo->made </td> <td class='area'>$replys</td></tr>";

 

 

But this is not working and it says 0, any helps. Thanks all.

and yes I have replys in the topics.

Link to comment
https://forums.phpfreaks.com/topic/154680-solved-not-fetching/
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.