Hi, I came across this strage problem and thought to share it with you!
I have created an HTML form so that a user can enter data into the mySQL database. I have a very simple table with 3 columns )id, group, card). The SQL query in my PHP code was as follows:
$sqlreceive = "INSERT INTO $table1 (group,card) VALUES ('$POST[group]',$POST[card])";
$resultreceive = @($sqlreceive) or die("Sorry, could not complete query!");
From this code I kept getting the message "Sorry, could not complete query!". After trying many changes it didn't work until I changed the name of the field group to somethihg else. After I did this everything worked as normal.
Does anybody know why does this happen? Does this mean we cant use group in the database?
Thanks!