Try putting single quotes around the strings: $Query = "INSERT INTO table_name (Obj,Descrip) VALUES ('keyboard','Device to pound on when frustrated.')";
Another thing that would be useful is to use the mysql_error() function in your die, which will give a better indication of the problem -----Original Message----- From: phantom [SMTP:[EMAIL PROTECTED]] Sent: 12 November 2001 09:50 To: [EMAIL PROTECTED] Subject: [PHP] PHP/MySQL New to this, trying to insert record into DB $Query = "INSERT INTO table_name (Obj,Descrip) VALUES (keyboard,Device to pound on when frustrated.)"; $Results = mysql_query($Query) or die ("Query FAILED"); I keep getting Failed Query messages here, any idea why? PHP/MySQL manuals do not have examples of how to do this. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]