I swear this lil project is giving me a ton more problems that it's worth. All part of the learning I suppose. Anyways, onto the problem. I get a T_STRING error on a line where I'm trying to insert information into a database. Below is the query to the database.
<?php
if($_POST['submit'] == "Submit") {
$insert = mysql_query("INSERT INTO topics SET
title = '$topictitle',
author = '$author',
message = '$body',
threaddate = date("l, F d, Y")");
if($insert) {
echo("Topic added.");
} else {
echo("Error adding topic.");
}
}
?>
Now title, author, message all exist as fields in a form I created. the date does not. Could this be causing the problem? Thanks for any help. 🙂