Ok, heres the problem.
A message submit form in PHP takes some parameters from user entered data and runs two MySQL queries to get, specifically a user_id value based on the username entered,and a forum_id value based on the forum name entered.These are made $variables and added to an INSERT query.
When the form is submitted, a successful operation is reported, yet the two values retrieved by the queries are not entered into the database.
The query and variable syntax are spot on. No reported parse errors or SQL errors.
My data type specs in the database for the two id values are 'mediumint'. Does a PHP $ variable need to be of the correct data type for it to be accepted by the database?? should I change the required data type in the database to VARCHAR ??..All other values retrieved from the form insert ok into the database......any help would be appreciated.
A message submit form in PHP takes some parameters from user entered data and runs two MySQL queries to get, specifically a user_id value based on the username entered,and a forum_id value based on the forum name entered.These are made $variables and added to an INSERT query.
When the form is submitted, a successful operation is reported, yet the two values retrieved by the queries are not entered into the database.
The query and variable syntax are spot on. No reported parse errors or SQL errors.
My data type specs in the database for the two id values are 'mediumint'. Does a PHP $ variable need to be of the correct data type for it to be accepted by the database?? should I change the required data type in the database to VARCHAR ??..All other values retrieved from the form insert ok into the database......any help would be appreciated.