I've been working at this for hours, and can't seem to get these few lines of code to work. This is the first time I've worked with MySQL, so bear with me.
<?php
$con = mysql_connect("localhost","usernamewitheld","passwordwithheld");
if (!$con){die('Could not connect: ' . mysql_error());}
mysql_select_db("splashpage");
mysql_query("INSERT INTO 'email' ('emailaddress') VALUES ('$_POST[email]');", $con);
mysql_close($con);
?>
The code executes without any errors from apache, but the database remains unaffected. Any ideas?
EDIT: Table structure is as follows:
Field Type Null Key Default Extra
emailaddress text NO MUL NULL
timesubmitted timestamp NO CURRENT_TIMESTAMP