Displaying content from MySQL

Posted on 2003-03-30
Medium Priority
Last Modified: 2010-03-05
I'm new to the DBI module, I was wondering how to pull the content from the database and have the web browser read it.  Are there any good area's on the web to learn how to do this?  I've seen plenty of articles, guides, & tutorials on how to post to the database but not read from the database.

Any help and/or guidance is/will be appreciated.
Question by:KenHeckert
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 51

Accepted Solution

ahoffmann earned 150 total points
ID: 8234567

as you already knwo how to open a MySQL database, I leave this part out:

$sth=$dbh-prepare("SELECT*FROM table");
while (my $r=sth->fetchrow_arrayref()){
   my @arr=@{$r};
   print join( '<BR>', @arr );
# to be improved in many ways, for details see
#    man DBI

Expert Comment

by:Zlatin Zlatev
ID: 8366283
@KenHeckert, Do you need more help?

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question