John Kelly
New member
I want to insert records in MySQL using PHP. So i am using the following code. But it is not working. Please point out the error. According to me it is right though it doesn't work.
<?php
include("connect.php");
$date=date("Y-m-d");
$write = mysql_query("INSERT INTO guestbook VALUES ('','John','Kelly','$date','M')")or die('unsuccessful'');
?>
<?php
include("connect.php");
$date=date("Y-m-d");
$write = mysql_query("INSERT INTO guestbook VALUES ('','John','Kelly','$date','M')")or die('unsuccessful'');
?>