onthespot Posted August 15, 2009 Share Posted August 15, 2009 <?php $q = "INSERT INTO ".TBL_USERS." VALUES ('$username', '$password', '0', $ulevel, '$email', $time, '$name1', now(), '$location', '$x360gt', '$ps3gt', '$pcgt', 'Write your own comment')"; $stats1 = "INSERT INTO fifa09_stats VALUES ('$username', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0')"; $stats2 = "INSERT INTO fifa10_stats VALUES ('$username', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0')"; $stats3 = "INSERT INTO pes09_stats VALUES ('$username', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0')"; $stats4 = "INSERT INTO pes10_stats VALUES ('$username', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0')"; } return mysql_query($q, $this->connection); mysql_query($stats1, $this->connection); mysql_query($stats2, $this->connection); mysql_query($stats3, $this->connection); mysql_query($stats4, $this->connection);?> That isn't working, it's not letting the user register which means there is an error. Can you tell me if i am doing this correctly? Quote Link to comment https://forums.phpfreaks.com/topic/170399-help-with-registration/ Share on other sites More sharing options...
Jessica Posted August 15, 2009 Share Posted August 15, 2009 try using mysql_error() Quote Link to comment https://forums.phpfreaks.com/topic/170399-help-with-registration/#findComment-898881 Share on other sites More sharing options...
onthespot Posted August 15, 2009 Author Share Posted August 15, 2009 Well Im asking if you can display the queries in the way I am? Quote Link to comment https://forums.phpfreaks.com/topic/170399-help-with-registration/#findComment-898884 Share on other sites More sharing options...
Jessica Posted August 15, 2009 Share Posted August 15, 2009 try using mysql_error() Quote Link to comment https://forums.phpfreaks.com/topic/170399-help-with-registration/#findComment-898887 Share on other sites More sharing options...
onthespot Posted August 15, 2009 Author Share Posted August 15, 2009 Where would I add this in? Quote Link to comment https://forums.phpfreaks.com/topic/170399-help-with-registration/#findComment-898898 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.