If it doesn't work, the I suspect you are inserting in the wrong order.
To insert records you have to follow the same order as it is in the database.
Code: Select all
$sql= "INSERT INTO ".$table." VALUES ( NULL,'$name','$comment', NULL,'$url',0, '$my_date' )";