I am building a script to add links to my database. For some reason I keep getting a strange error with this line of code:
<center><a href="add.php">back</a></center>
I have no idea what the problem is? Here is the main part of the script that I am argueing with. Maybe I'm messing something up and don't realize it.
<?
if($submit)
{
mysql_connect(localhost,user,pass);
mysql_select_db(database);
mysql_query("INSERT INTO links VALUES(\"NULL\",\"$url\",\"$title\",\"$description\",\"$date\",\"$niche\",\"$type\");
?>
<center><a href="add.php">back</a></center>
<?
}
Thanks for the help everyone.