mattal999 Posted October 18, 2007 Share Posted October 18, 2007 $get = "INSERT INTO trips (id, username, tripname, date, story) VALUES (NULL, " . $username . ", " . $tripname . ", " . $date . ", " . $story . ")"; mysql_query($get); it doesn't work... Quote Link to comment Share on other sites More sharing options...
Barand Posted October 18, 2007 Share Posted October 18, 2007 string values must be quoted <?php $get = "INSERT INTO trips (id, username, tripname, date, story) VALUES (NULL, '$username', '$tripname', '$date', '$story')"; mysql_query($get); ?> Quote Link to comment Share on other sites More sharing options...
mattal999 Posted October 18, 2007 Author Share Posted October 18, 2007 ok it works fine now thanks 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.