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 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 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 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? 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 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
Archived
This topic is now archived and is closed to further replies.