Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Looking for a simpler DBI solution.

by kwoff (Friar)
on Nov 01, 2001 at 23:32 UTC ( [id://122641]=note: print w/replies, xml ) Need Help??


in reply to Looking for a simpler DBI solution.

$dbh->do() does the execute() for you already. That's the point of using do() :). You could do this:
$dbh->do('INSERT INTO ... (?,....?)', undef, @_);
and skip the execute().

Replies are listed 'Best First'.
Re: Re: Looking for a simpler DBI solution.
by kwoff (Friar) on Nov 01, 2001 at 23:40 UTC
    Also, if you're starting out doing web application development, read "MySQL and Perl for the Web". That site contains a slick WebDB.pm that does some input validation based on the MySQL table "metadata". (read the book for explanation how to use it :) Actually he (Paul DuBois) has a really excellent book called "MySQL" (I used it to figure out how to do MySQL stuff from the Apache C API, which made me feel special, hehe).
      Kwoff, if you find some spare time I would appreciate if you could write a review for the Book Reviews section.

      Hanamaki

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-24 12:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found