gple Posted October 31, 2009 Share Posted October 31, 2009 if(mysql_query("Insert into players (fname, lname, address, city, state, zip, phone, dob, gender, type1, type2, type3, type4) values ('$fname', '$lname', '$address', '$city', 'NY', '$zip', '$phone', '$dob', '$gender', '$type1', '$type2', '$type3' , '$type4' )")) {echo "success";} else {echo "failed";} any idea why this would be failing Quote Link to comment https://forums.phpfreaks.com/topic/179761-solved-insert-not-working/ Share on other sites More sharing options...
mikesta707 Posted October 31, 2009 Share Posted October 31, 2009 echo the mysql_error() and see what it is. im assuming your coded gives you the failed message? Quote Link to comment https://forums.phpfreaks.com/topic/179761-solved-insert-not-working/#findComment-948422 Share on other sites More sharing options...
gple Posted October 31, 2009 Author Share Posted October 31, 2009 something screwed up with my db structure. got it now. thanks Quote Link to comment https://forums.phpfreaks.com/topic/179761-solved-insert-not-working/#findComment-948424 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.