Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Somethings not rightwith my MySQL do()

by gav^ (Curate)
on Jul 20, 2002 at 01:45 UTC ( #183526=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://183526]
help
Chatterbox?
belg4mit tiptoes through the catacombs, muttering something about SSL
[LanX]: belg4mit: thanks for fixing your CB log!

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2018-06-23 15:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (125 votes). Check out past polls.

    Notices?