madspof Posted September 30, 2007 Share Posted September 30, 2007 I have a a script which inserts data from form but it is not iserting the data corectly mysql_query("INSERT INTO members (Gamertag, Password, Name, Email, Rank) VALUES ('$gamertag', '$name', 'pass', '$email', 'Member')"); I can assure you that the rest of the script is working but the information is not be inserted into the tables. The fields in the table are Gamertag , Password , Name , Email , Rank Quote Link to comment https://forums.phpfreaks.com/topic/71288-why-wont-this-information-insert/ Share on other sites More sharing options...
madspof Posted September 30, 2007 Author Share Posted September 30, 2007 anyone Quote Link to comment https://forums.phpfreaks.com/topic/71288-why-wont-this-information-insert/#findComment-358604 Share on other sites More sharing options...
shocker-z Posted September 30, 2007 Share Posted September 30, 2007 Best way to get answers yourself is by adding or die(mysql_error()); when a statement isn't working mysql_query("INSERT INTO members (Gamertag, Password, Name, Email, Rank) VALUES ('$gamertag', '$name', 'pass', '$email', 'Member')") or die(mysql_error()); looks fine to me so most likley a field data issue or column name Regards Liam Quote Link to comment https://forums.phpfreaks.com/topic/71288-why-wont-this-information-insert/#findComment-358608 Share on other sites More sharing options...
LiamProductions Posted September 30, 2007 Share Posted September 30, 2007 Firstly add or mysql_error(); to the end secondly is your table members? Quote Link to comment https://forums.phpfreaks.com/topic/71288-why-wont-this-information-insert/#findComment-358610 Share on other sites More sharing options...
shocker-z Posted September 30, 2007 Share Posted September 30, 2007 Firstly add or mysql_error(); to the end secondly is your table members? beat you to it either way i huess Liam was first Quote Link to comment https://forums.phpfreaks.com/topic/71288-why-wont-this-information-insert/#findComment-358618 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.