I'm doing a simple INSERT INTO table using the output of a form. All of the fields go in apart from one which says "Resource id #13"?
The code:
$username="*******";
$password="*******";
$database="*******";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database"
;
$query="INSERT INTO table (handle,email,sex,passwrd) VALUES ('$handle','$email','$sex',','$password')";
$result=mysql_query($query) or die (mysql_error());
The code:
$username="*******";
$password="*******";
$database="*******";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database"

$query="INSERT INTO table (handle,email,sex,passwrd) VALUES ('$handle','$email','$sex',','$password')";
$result=mysql_query($query) or die (mysql_error());