CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
check data in mysql

 



derekchung_8080
New User

May 2, 2014, 6:00 PM

Post #1 of 3 (4014 views)
check data in mysql Can't Post

Hi, I just would like to write a perl script , this perl script do the following .

Check the parameter $data in a mysql database ( with user ID and password ) , if the $data is exist then return true , if

not then return false , would advise how to write this script ? thanks


Laurent_R
Veteran / Moderator

May 3, 2014, 3:14 AM

Post #2 of 3 (3829 views)
Re: [derekchung_8080] check data in mysql [In reply to] Can't Post

You need to use the DBI module, together with the DBD::mysql database driver. Check the CPAN documentation for these two modules, there are plenty of examples that you can just mimick to connect to the base and run some queries.


Laurent_R
Veteran / Moderator

May 3, 2014, 3:22 AM

Post #3 of 3 (3823 views)
Re: [derekchung_8080] check data in mysql [In reply to] Can't Post

Cross posted on the Dev Shed forum: http://forums.devshed.com/perl-programming-6/check-data-mysql-961355.html

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives