Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: mysql, checkbox, set, processing

by mwp (Hermit)
on Aug 31, 2005 at 21:15 UTC ( [id://488229]=note: print w/replies, xml ) Need Help??


in reply to mysql, checkbox, set, processing

Well, quite simply,
# prepare query to insert set my $sth = $dbh->prepare('INSERT INTO myset (col) VALUES (?)'); # build set to insert my $set = join ',', $cgi->param('Name'); # insert set $sth->execute($set);
But InfiniteSilence is asking all the right questions...

Updated to include ikegami's corrections.

Alakaboo

Replies are listed 'Best First'.
Re^2: mysql, checkbox, set, processing
by ikegami (Patriarch) on Aug 31, 2005 at 21:58 UTC

    Shouldn't that be $cgi->param('Name'), and
    are you sure those parens are suppose to be in $set?

      Yes, no, and thank you!

      alakaboo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://488229]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-18 03:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found