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 Link to comment https://forums.phpfreaks.com/topic/95727-insert-into-failure/ 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()); ?> Link to comment https://forums.phpfreaks.com/topic/95727-insert-into-failure/#findComment-490123 Share on other sites More sharing options...
czukoman20 Posted March 12, 2008 Author Share Posted March 12, 2008 i figured it out thanks Link to comment https://forums.phpfreaks.com/topic/95727-insert-into-failure/#findComment-490180 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.