RE: How to access MySql using Perl. Help

2002-02-12 Thread Keith A. Calaman
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 4:11 AM To: Andy Cheng Cc: [EMAIL PROTECTED] Subject: Re: How to access MySql using Perl. Help > I am new to MySql. I have MySql installed in my Linux PC. How do I connect > t

RE: How to access MySql using Perl. Help

2002-02-12 Thread Todd Williamsen
3:11 AM To: Andy Cheng Cc: [EMAIL PROTECTED] Subject: Re: How to access MySql using Perl. Help > I am new to MySql. I have MySql installed in my Linux PC. How do I connect > to MySql using Perl script and assign the result of a query to an array? > Where could I find a sample code?

Re: How to access MySql using Perl. Help

2002-02-12 Thread lcalero
> I am new to MySql. I have MySql installed in my Linux PC. How do I connect > to MySql using Perl script and assign the result of a query to an array? > Where could I find a sample code? Thank you. man DBD::mysql Cheers. -- Luis Calero Muñoz $email{luis} = '[EMAIL PROTECTED]' $who

How to access MySql using Perl. Help

2002-02-11 Thread Andy Cheng
Hello, I am new to MySql. I have MySql installed in my Linux PC. How do I connect to MySql using Perl script and assign the result of a query to an array? Where could I find a sample code? Thank you. Andy _ Get your FREE dow

Re: How to access MySql using Perl. Help

2002-02-11 Thread admin
Hi. You have to install DBI::DBD module. Then in perl use Mysql; $dbh = Mysql->connect(undef,"database","username",'password'); $sql = "select blah from blah"; $sth = $dbh->query($sql); @arr = $sth->fetchrow; for example if the result is more than one line you have to loop it Ofcoz there is ot

Re: How to access MySql using Perl. Help

2002-02-07 Thread admin
Hi. You have to install DBI::DBD module. Then in perl use Mysql; $dbh = Mysql->connect(undef,"database","username",'password'); $sql = "select blah from blah"; $sth = $dbh->query($sql); @arr = $sth->fetchrow; for example if the result is more than one line you have to loop it Ofcoz there is ot

How to access MySql using Perl. Help

2002-02-07 Thread Andy Cheng
Hello, I am new to MySql. I have MySql installed in my Linux PC. How do I connect to MySql using Perl script and assign the result of a query to an array? Where could I find a sample code? Thank you. Andy _ Get your FREE dow