madjack87 Posted September 29, 2009 Share Posted September 29, 2009 Edit: I figured it out thanks. Link to comment https://forums.phpfreaks.com/topic/175927-help-with-inserting-into-database/ Share on other sites More sharing options...
cags Posted September 29, 2009 Share Posted September 29, 2009 In your $sql variable, you have single quotes before and after the first and last VALUES variables, but only after the second... Try... <?php $sql="INSERT INTO events (bar, date, event) VALUES ('$_POST[barname]','$_POST[date]','$_POST[event]')"; ?> Link to comment https://forums.phpfreaks.com/topic/175927-help-with-inserting-into-database/#findComment-927015 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.