ChidoriSoul Posted May 31, 2009 Author Share Posted May 31, 2009 GrrrrWarning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/tparpg.awardspace.co.uk/register.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/www/tparpg.awardspace.co.uk/register.php:28) in /home/www/tparpg.awardspace.co.uk/register.php on line 37Line 28if (mysql_num_rows($result) > 0)line 37header('Location: login.php'); Link to comment Share on other sites More sharing options...
jlhaslip Posted May 31, 2009 Share Posted May 31, 2009 Check your Database Login credentials. username/password/ dbname. Looks like it either failed to connect, or found no data.Is there data in the Database? Link to comment Share on other sites More sharing options...
ChidoriSoul Posted May 31, 2009 Author Share Posted May 31, 2009 yeah, my DB is thisMy Register PageI think I may have to change the table Link to comment Share on other sites More sharing options...
justsomeguy Posted June 1, 2009 Share Posted June 1, 2009 The error "supplied argument is not a valid MySQL result resource" means that the SQL query failed, because it had an error in it. You can use the mysql_error function to print an error from MySQL. Link to comment Share on other sites More sharing options...
ChidoriSoul Posted June 2, 2009 Author Share Posted June 2, 2009 now, how do I do that? Link to comment Share on other sites More sharing options...
jlhaslip Posted June 2, 2009 Share Posted June 2, 2009 echo '<p>' . mysql_error() . '<br /><br />Query: ' . $query . '</p>'; // Debugging message. On an error, ec ho out the Error details and the actual Query you used.Replace the "$query" with the variable used in your code. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.