Hi, I have a prepared statement that sends a few strings and a couple int values to a table. This data comes from an online form. The problem is that one of the form values, the phone number, is not being entered into the table correctly. The table does become populated with all the correct values except for the phone number column which receives a 0 as it's value instead of the value from the form. In the form, I make sure that the phone number only contains numbers, but that still doesn't help.
I then casted the phone number variable as so:
intval($phone_number);
That didn't solve the problem either. Now if I hard code this within the form processing:
$phone_number = 5551234567;
then everything works fine. Any idea why this is not working correctly?
Thanks!
b