http://qs321.pair.com?node_id=183526


in reply to Somethings not rightwith my MySQL do()

You've got the UPDATE syntax wrong, it should be like:

UPDATE category SET name = ?, view_cats_prod = 'yes' WHERE id = ?

You should really test your SQL statements before you put them into your perl code.

Documentation can be found (for mysql) here.

  • Comment on Re: Somethings not rightwith my MySQL do()

Replies are listed 'Best First'.
Re: Re: Somethings not rightwith my MySQL do()
by andrew (Acolyte) on Jul 20, 2002 at 01:51 UTC
    Thank you I though you could use AND in SET I gues its commas thanks