czukoman20 Posted March 12, 2008 Share Posted March 12, 2008 mysql_query("INSERT INTO userdata (contacted, username2, data) VALUES ('$user1', '$username4', '$date2')"); I have these values that need to be inserted into the database. I am not sure as to why these aren't being insterted. could it be that my $date2 variable has more than 2 spaces or something? or that it has numbers? The database is table userdata subtables are contacted VarChar(40) username2 VarChar(40) data VarChar(200) is there something wrong with my code.. or? Help is appreciated Thanks Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted March 12, 2008 Share Posted March 12, 2008 use this an see what errors you get from it... <?php mysql_query("INSERT INTO userdata (contacted, username2, data) VALUES ('$user1', '$username4', '$date2')") or die(mysql_error()); ?> Quote Link to comment Share on other sites More sharing options...
czukoman20 Posted March 12, 2008 Author Share Posted March 12, 2008 i figured it out 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.