You got the (SQL) syntax wrong for the UPDATE query. Consult your nearest SQL documentation.
In reply to Re: SQL UPDATE and DBI for MySQL by dws in thread SQL UPDATE and DBI for MySQL by silent11