i have no idea why this insert isnt inserting. i think its a problem with the $user varible for the table that its going to insert into, however i have user that on other scripts before and it worked fine. do you see anything wrong?
<?php
if (($REQUEST_METHOD=='POST')) {
if($user == NULL){ echo "USERNAME NOT SPECIFIED!!!"; }else{
$ip = "$REMOTE_ADDR";
$query = "INSERT INTO ".$user." (`guest_id`, `name`, `email`, `www`, `time`, `ip`, `message`) VALUES ('0000', '$name', '$email', '$www', '$time', '$ip', '$message'); ";
mysql_pconnect("localhost","mine","mine") or die("Unable to connect to SQL server");
mysql_select_db("guestbooks") or die("Unable to select database");
mysql_query($query) or die("Insert Failed!");
print("<center>Message added...</center>");
}
}
?>