Jump to content

Warning: Mysql_Fetch_Array() Expects Parameter 1 To Be Resource, Boolean Given ---What Shoul I Do?


DObeBitayDumaran

Recommended Posts

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());

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.