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 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? 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 Link to comment https://forums.phpfreaks.com/topic/179761-solved-insert-not-working/#findComment-948424 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.