1
having a strange behaviour from a MySQL UPDATE.
- assuming set1 is defined as a 'text' in the MySQL table
- assuming $set1 is "3-1",
after doing a
$result = mysql_query("UPDATE $data SET set1 = $set1 WHERE numg = $numg");
the content of the set1 field will become 2 (3 minus 1).
Anybody knows how to avoid this and let UPDATE treat the string as text, not calculating the content?