DObeBitayDumaran Posted September 30, 2012 Share Posted September 30, 2012 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()); Link to comment https://forums.phpfreaks.com/topic/268930-warning-mysql_fetch_array-expects-parameter-1-to-be-resource-boolean-given-what-shoul-i-do/ Share on other sites More sharing options...
Jessica Posted September 30, 2012 Share Posted September 30, 2012 $result and $result1 are two different names Link to comment https://forums.phpfreaks.com/topic/268930-warning-mysql_fetch_array-expects-parameter-1-to-be-resource-boolean-given-what-shoul-i-do/#findComment-1381880 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.