DelphiFAQ Home Search:

Getting started with perl and mysql

 

comments2 comments. Current rating: 2 stars (1 votes). Leave comments and/ or rate it.

This is an example how to get started. Obviously you'll need to change the name of the database, user and password to reflect your environment. Also you need to have DBI and DBD::mysql installed on the server.

use Mysql;

$db = Mysql->Connect('localhost', 'databasename', 'username', 'password');

$sth = $db->Query('select user_id, user_name from users');

while (($user_id,$user_name)=$sth->FetchRow()) {
  print "$user_id: $user_name\n";
}

Content-type: text/html

Comments:

2019-07-31, 11:12:46
mitwisewrigpowermitwise  
rating

Do you need a financial help? Are you in any financial crisis or do you need funds to start up your own business? Do you need funds to settle your debt or pay off your bills or start a good business? Do you have a low credit score and you are finding it hard to obtain capital services from local banks and other financial institutes? Here is your chance to obtain a financial services from our company. We offer the following finance to individuals-
*Commercial finance
*Personal finance
*Business finance
*Construction finance
*Business finance And many More:
and many more at 2% interest rate;
Contact Us Via Email:bullsindia187@gmail.com


Keywords:
2019-07-31, 11:13:10
mitwisewrigpowermitwise  

Do you need a financial help? Are you in any financial crisis or do you need funds to start up your own business? Do you need funds to settle your debt or pay off your bills or start a good business? Do you have a low credit score and you are finding it hard to obtain capital services from local banks and other financial institutes? Here is your chance to obtain a financial services from our company. We offer the following finance to individuals-
*Commercial finance
*Personal finance
*Business finance
*Construction finance
*Business finance And many More:
and many more at 2% interest rate;
Contact Us Via Email:bullsindia187@gmail.com
This image was also posted here:
Perl script on web server sends Excel file to browser
How to install DBD for mysql using CPAN



Keywords:

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: