Well i get the following error:
Warning: Failed Query: INSERT INTO mdresults (id, title, story) VALUES ('2', 'My Trip to Pennsylvania', '' [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1] in class.madlibs.php on line 293
//put results into db
$sql = "INSERT INTO mdresults (id, title, story) ". "VALUES ('".
mysql_real_escape_string($this->inText['id'])."', '".
mysql_real_escape_string($this->inText['title'])."', '".
mysql_real_escape_string($this->replaceTags($_POST['word']))."'";
if(!mysql_query($sql, $this->dbID)) {
trigger_error("Failed Query: ".$sql." [".mysql_error($this->dbID)."]", E_USER_WARNING);
return false;
} else {
return true;
}
//end inputting results