otuatail Posted November 2, 2006 Share Posted November 2, 2006 I am getting a 'Call to undefined function: msql_num_rows()'I want to trap an error where there are no records$sql = "SELECT * FROM Accounts WHERE USR = '" . $USR . "' AND PWD = '" . $PWD . "'";$qAccess = mysql_query($sql) or die(mysql_error());echo msql_num_rows($qAccess);I have searched the documentation but not found any examples.Desmond. Quote Link to comment https://forums.phpfreaks.com/topic/25930-msql_num_rows/ Share on other sites More sharing options...
HuggieBear Posted November 2, 2006 Share Posted November 2, 2006 Try mysql_num_rows() instead of msql_num_rows().You have a typo... ou're missing a 'Y' if you'll excuse the pun ;o)Huggie Quote Link to comment https://forums.phpfreaks.com/topic/25930-msql_num_rows/#findComment-118415 Share on other sites More sharing options...
otuatail Posted November 2, 2006 Author Share Posted November 2, 2006 Thanks. Getting a bit late in the day. Desmond. Quote Link to comment https://forums.phpfreaks.com/topic/25930-msql_num_rows/#findComment-118416 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.