Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Need help writing a script that interacts with a MySQL DB!

by Anonymous Monk
on Sep 30, 2012 at 09:49 UTC ( [id://996489]=note: print w/replies, xml ) Need Help??


in reply to Re: Need help writing a script that interacts with a MySQL DB!
in thread Need help writing a script that interacts with a MySQL DB!

I'll one-up you with bound columns. (Perhaps not for the beginner, though.)

$query1 = $conn->prepare(q{SELECT name, email FROM ...}); $query1->execute(...); $query1->bind_columns( \my ($name, $email) ); while ($query1->fetch) { print "\nName: $name\nEmail: $email\n"; }

They're just magic. And among the cleanest and most efficient interfaces DBI provides.

Log In?
Username:
Password:

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

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

    No recent polls found