There is a syntax error in your query, you sholdn't surround table name and column with quotes '
, at least you can use backtick `
INSERT INTO 'signups' ('signup_email_address', 'signup_date','signup_time')
Should be
INSERT INTO signups (signup_email_address, signup_date, signup _time) VALUES
Or
INSERT INTO `signups` (`signup_email_address`, `signup_date`, `signup _time`) VALUES
Only values (actually not integers for integers columns) should be surrounded with quotes '
.
Then I would like to remember you that mysql_
functions are deprecated so i would advise you to switch to mysqli or PDO and indeed you are at risk of sql injection
, have a look here How can I prevent SQL injection in PHP?. You should use prepared statment to avoid any risk