Jump to content

Register Script


ChidoriSoul

Recommended Posts

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...