Have PHP5.3.8, MySQL5.17, Apache2.2, Win 7. Am using too many languages at once. Still need to catch up learning how to store a record's fields into variables before using mysql_free_result():
$chk_txnid = "SELECT 1, orderno, status FROM mytable WHERE txn_id='$tx_token'"; $result = mysql_query($chk_txnid); $num_rows = mysql_num_rows($result);
Later this is followed with,
mysql_free_result($result);
The system gives me the error to use mysql_free_result unless it appears before the update. Then the following code yields zero updates:
$query = "UPDATE mytable SET status=1 , txn_id='$tx_token' where orderno ='$orderno'";
Can someone answer any of the two following questions:
How to store the read in record as variables, and
How to use a mysql_free_result() command AFTER the above update.
Grabbing at straws,
Yshua












