Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Looking for a simpler DBI solution.

by kwoff (Friar)
on Nov 01, 2001 at 23:32 UTC ( #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 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.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2021-05-11 15:49 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (119 votes). Check out past polls.