How do I get data back from the UPDATE?
Do I have to run antoher query?
$res = "UPDATE tab SET val = '$n_val' WHERE <FIELD> = '<CONDITION>'";
This does not work:
$data = mysql_fetch_array($res);
This does:
$data_res = "SELECT val FROM tab WHERE val = '$n_val'";
$data = mysql_fecth_array($data_res);
But I was hoping I could perform the UPDATE and the SELECT
in the same query.
Is that possible?