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!!
 

it can be that navicat is off or that you didnt write the right database in you config
or i dont know
=D
 
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 So i removed Now it is godd i think ENJOY DD
 
Start my server DarK <---webbsite exp rate 15x zulie 50x !! i had exp rat 50 But i did get from lvl 1 to 10 So i removed Now it is godd i think ENJOY DD

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