Hi,
I have an application working fine on a Win2K machine, SQL7 client, and PHP5.
I Try (for internal reasons) to switch it to a WinXP, SQL2000, PHP5.
After the switch, everything works fine except for one thing. When I make a INSERT or UPDATE query, the query runs, but I always get the OR DIE message. Here is a sample or code:
$result_add_users_history = mssql_query("
INSERT INTO tbl_users_history (users_history_id_users, login_date)
SELECT
'$id_users',
'$now_date'
;")
or die ("Invalid query");
If I check in the database, the data is entered in, but I still get the INVALID QUERY message.
Should I get rid of all OR DIE in my code ?
I have an application working fine on a Win2K machine, SQL7 client, and PHP5.
I Try (for internal reasons) to switch it to a WinXP, SQL2000, PHP5.
After the switch, everything works fine except for one thing. When I make a INSERT or UPDATE query, the query runs, but I always get the OR DIE message. Here is a sample or code:
$result_add_users_history = mssql_query("
INSERT INTO tbl_users_history (users_history_id_users, login_date)
SELECT
'$id_users',
'$now_date'
;")
or die ("Invalid query");
If I check in the database, the data is entered in, but I still get the INVALID QUERY message.
Should I get rid of all OR DIE in my code ?