hi guys,
i have an error to update database because of variable.
this is my code
UPDATE `payment` SET `check`=1 AND 'amount'=$amountpaid WHERE `check`=0 AND `userid`=$uid
$amountpaid id the amount of bill that user paid and $uid is user id.anyone knows how to use variable in sql?