ohdang888 Posted December 19, 2008 Share Posted December 19, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/137633-solved-mysql_num_rows/ Share on other sites More sharing options...
.josh Posted December 19, 2008 Share Posted December 19, 2008 or die(mysql_num_rows()); you probably meant: or die(mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/137633-solved-mysql_num_rows/#findComment-719389 Share on other sites More sharing options...
ohdang888 Posted December 19, 2008 Author Share Posted December 19, 2008 ohhhh haha ya that's what i meant.... typing too fast. thanks, Quote Link to comment https://forums.phpfreaks.com/topic/137633-solved-mysql_num_rows/#findComment-720000 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.