The update statement needs to change the balance of user.
update register set bal=(bal-$tax) where name=$user
but it is showing the error atUnknown column in 'where clause'
Table structure:
name || password || bal
karan12 karan123 6000
mitul 5454 9000
Query:
$q= mysql_query("update register set bal=(bal-$tax) where name=$user" , $connection) or die("Select Query failed: ".mysql_error());
Error:
Unknown column 'mitul' in 'where clause'