Solved

CGI

Posted on 2004-08-04
4
218 Views
Last Modified: 2010-05-18
i want to be able to view certain data from the database and though of using CGI to display it.
can Perl CGI be used to extract data from database? (50 pts)
If so, can anyone show me? the steps perhaps (will add on pts)

thanks
0
Comment
Question by:TPoly
  • 2
4 Comments
 
LVL 20

Expert Comment

by:jmcg
Comment Utility
Yes, it can. There are several experts here who will be glad to help you but for an example to be more useful to you, it would help to know some specifics:

what database product(s) are you using?

do you have a sample SQL statement that produces the data you want displayed?

In addition to the CGI module, you'll most likely end up with the DBI module and one of the DBD driver modules.

=============

Some databases have native web interfaces that work out-of-the-box for simple stuff and can be customized to do less simple stuff. Sometimes it's better to use Perl, sometimes it's better to embrace the product.
0
 

Author Comment

by:TPoly
Comment Utility
ok thanks..

I'm using Mysql.

Sample SQL statement: select job from test where job = "abc";
Is this what you mean by sample SQL statement?

0
 
LVL 84

Expert Comment

by:ozo
Comment Utility
0
 
LVL 20

Accepted Solution

by:
jmcg earned 50 total points
Comment Utility
Here a couple of older questions that contain examples of retrieving data from a MySQL database and formatting the results as an HTML table. I'm not sure selecting from one column is going to get you an interesting table, but if you take a look at these examples, I'm sure you can adapt them to do what you want.

http:Q_20995819.html

http:Q_20873609.html

The experts who contributed those answers are still active here and you should be able to get answers to any further questions you have.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now