Jump to content

[SOLVED] mysql_num_rows


ohdang888

Recommended Posts

getting a werid error:

Warning: Wrong parameter count for mysql_num_rows() in /home/socialap/public_html/posters/upload.php on line 7

 

line 6:

$rs = mysql_query("SELECT * FROM users WHERE user_id='$user' and key='$key' LIMIT 1")or die(mysql_num_rows());

line 7:

if (isset($_POST['submit']) and (mysql_num_rows($rs) > 0)) {

 

 

the page has already been connected to the DB

 

Link to comment
https://forums.phpfreaks.com/topic/137633-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.