webguy262 Posted July 2, 2009 Share Posted July 2, 2009 I'm wondering why... $query = "INSERT INTO emails (email) VALUES ('$email') or die(mysql_error())"; $result = mysql_query($query); Does not work... $query = "INSERT INTO emails (email) VALUES ('$email') or die(mysql_error())"; mysql_query($query); Does work. I thought both would work... what am I missing? Quote Link to comment Share on other sites More sharing options...
mattal999 Posted July 2, 2009 Share Posted July 2, 2009 Well neither SHOULD work, because they both use incorrect syntax. Should be: $query = "INSERT INTO emails (email) VALUES ('$email')"; $result = mysql_query($query) or die(mysql_error()); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.