DObeBitayDumaran Posted September 30, 2012 Share Posted September 30, 2012 (edited) i dont know what to do please help me!! $con=mysql_connect("localhost","root",""); if(!$con) { die('Error connecting to server :'.mysql_error()); } mysql_select_db("user_login",$con); $result=mysql_query("SELECT username FROM user_info WHERE username='$_POST[u_name]'"); if(!mysql_fetch_array($result1,MYSQL_ASSOC)) { $sql="INSERT INTO user_info(username, password) VALUES('$_POST[u_name]','$_POST[pass1]')"; if(!mysql_query($sql,$con)) { die('Error :'.mysql_error()); Edited September 30, 2012 by DObeBitayDumaran Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 30, 2012 Share Posted September 30, 2012 $result and $result1 are two different names Quote Link to comment 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.