Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Help Me!

Status
Not open for further replies.
Newbie Spellweaver
Joined
Feb 5, 2007
Messages
57
Reaction score
0
WHEN I TRYIN TO REGISTER ON MY WEBPAGE I GET THIS

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program\xampp\htdocs\modules\register.php on line 51
Registration Failed, Sorry!

and my register line 51 looks like this:

}
$pass2 = md5($_POST['pass2']);
$c = mysql_connect($db['host'], $db['user'], $db['pass']);
mysql_select_db($db['name'], $c);
$check = mysql_query("SELECT * FROM accounts WHERE username = '$user'");
$check2 = mysql_num_rows($check);
if($check2 != '0') {
die('<font color=red>Username '.$user.' is in use.</font>');
}
if($pass != $pass2) {
die('<font color=red>Passwords dont match!</font>');
}

HOW SHALL IT BE HELP ME PLZ!!
 
Banned
Banned
Joined
Dec 9, 2006
Messages
173
Reaction score
0
WHEN I TRYIN TO REGISTER ON MY WEBPAGE I GET THIS

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program\xampp\htdocs\modules\register.php on line 51
Registration Failed, Sorry!

and my register line 51 looks like this:

}
$pass2 = md5($_POST['pass2']);
$c = mysql_connect($db['host'], $db['user'], $db['pass']);
mysql_select_db($db['name'], $c);
$check = mysql_query("SELECT * FROM accounts WHERE username = '$user'");
$check2 = mysql_num_rows($check);
if($check2 != '0') {
die('<font color=red>Username '.$user.' is in use.</font>');
}
if($pass != $pass2) {
die('<font color=red>Passwords dont match!</font>');
}

HOW SHALL IT BE HELP ME PLZ!!

it can be that navicat is off or that you didnt write the right database in you config
or i dont know
=D
 
Banned
Banned
Joined
Dec 9, 2006
Messages
173
Reaction score
0
or there is a fault in your site that can be a problem to!!
just get another site =P
 
Newbie Spellweaver
Joined
Feb 5, 2007
Messages
57
Reaction score
0
I found the problem Ty.. it was onn xampp and then install folder and a index.php i had edit some wrong Ty annyway guys!

Start my server <---webbsite exp rate 15x zulie 50x !! i had exp rat 50 But i did get from lvl 1 to 10 o_O So i removed Now it is godd i think :p ENJOY :DDD
 
Banned
Banned
Joined
Dec 9, 2006
Messages
173
Reaction score
0
Start my server DarK <---webbsite exp rate 15x zulie 50x !! i had exp rat 50 But i did get from lvl 1 to 10 o_O So i removed Now it is godd i think :p ENJOY :DDD

not good!!
DO NOT ADVERTISE HERE(or how you spell it)
 
Status
Not open for further replies.
Back
Top