We are on,
RHEL5
PHP 5.1.6
MYSQL 5.0.45
Facing strange issues while executing queries from PHP.....
Below is the insert query in the code base,
db_query("insert into fom_orders (login, membership, total, giftcert_discount) values ('".addslashes($userinfo['login'])."', '".addslashes($mem_ship)."', '$current_order[total_cost]', '$giftcert_discount')");
And below is the sql error logged,
insert into fom_orders (, membership, total, giftcert_discount) values ('jdenucci', 'Daily Printing, Inc.', '10.0000', '0.0000');
It can be clearly see above that the 'login' field name is missing and hence the sql error.
NOTE: We recently upgraded from RHEL3 (PHP4,Mysql3) to RHEL5 (PHP5, Mysql5)
and only after this we are facing just issues......
Can anyone please tell how the typed in code gets missed sometimes?!!!
Thanks
Sangaiah