I get no error now but the column "tarifa" is not updated even though I have several "test entries" in my db with varying values of max3
$query6 = "UPDATE db SET tarifa = CASE(max3 < 5 THEN \"2\", ((5 <= max3) AND (max3 < 10)) THEN \"1.8\",
((10 <= max3) AND (max3 < 20)) THEN \"1.5\", ((20 <= max3) AND (max3 < 50)) THEN \"1.2\", ((50 <= max3) AND (max3 < 80)) THEN \"1.1\",
(80 <= max3) THEN \"1\")" ;
$result6 = mysql_query($query6);
I tried it with and without the double brackets around the ((20 <= max3) AND (max3 < 50))
Any more help will be greatly appreciated
Thanks