Jump to content

mysql_num_rows and where


violinrocker

Recommended Posts

i have this code and it doesnt seem to work.... when i remove "WHERE" it works

 

$query = mysql_query('SELECT * FROM `friend_requests` WHERE `username` = `$session->username`');

echo "[<a href=\"newfriends.php\">Friend Requests(<font color='red' face='Arial'>".mysql_num_rows($query)."</font>)</a>]"

Link to comment
https://forums.phpfreaks.com/topic/198851-mysql_num_rows-and-where/
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.