my php code does not insert
Posted by: Stephen Brown
Date: April 10, 2010 03:59PM

I have created my database on Hostmonster using the wizard and PHPadmin. And the database appears fine. I can add to it at PHPadmin. But I can not get this PHP script to work. I cam here because I thought maybe it was a MySQL problem.
/* put it in the database


mysql_connect("localhost", $username, $password ) or die(mysql_error());
mysql_select_db($database) or die(mysql_error());

mysql_query("INSERT INTO 'data' VALUES('$first','$last','$email','$likeit')");



I even copied code from PHPadmin but it stil ldid not work.
Hope someone can help.

Options: ReplyQuote

Written By
my php code does not insert
April 10, 2010 03:59PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.