hey there i have the following code tha should display an error if it doesn't work...
if($_POST["submit"]) {
$dog = mysql_query("INSERT INTO diary (d_subject, d_content, member_login, d_date, d_location) VALUES (" . $_POST["d_subject"] . "," . $_POST["d_content"] . ", '$user_login','$d_date'," . $_POST["d_location"] . ")");
if(!dog) { echo(" no that didn't work"); }
else { echo("yeah the diary was updated!! " . $_POST["d_subject"] . "," . $_POST["d_content"] . ", '$user_login','$d_date'," . $_POST["d_location"] . "<BR><a href=\"index.php\">view</a>"); }
}
however, i get no error and no information is inserted into the db... just wondering if anyone knoew any possible sources for the 'error'
stew