Type: Posts; User: code2be
Can You post a sample of inserted data which contains double quotes ?
Also, Please post Your complete code.
The problem is about:
else ($a['rx_scanned'] = 0)
As You need to use else if whenever You define conditions, and using else must be without conditions.
Also, You've to use comparison operators...