echo $t1, $t2, $t3, $t4, $uid;
$querytotal = "update customer_det set `t1` = $t1, `t2` = $t2, `t3` = $t3, `t4` = $t4 WHERE `id` = $uid ";
echo $querytotal;
So I echo the variables, and I see them fine. When I go to do the update statement and echo the statement afterwards, it drops all the variables. I have no idea how that's even possible. Mysql_error: ...for the right syntax to use near ' t2
= , t3
= , t4
= WHERE id
=' at line 1. So it's skipping error on t1, but then kicks out at t2? Is there something i'm missing here?
Here's the echo'd query before it's ran update customer_det set
t1= '215',
t2= '240',
t3= '265',
t4= '300' WHERE
id= '273'
and after update customer_det set
t1= '',
t2= '',
t3= '',
t4= '' WHERE
id= ''