Date sent: Sun, 15 Jul 2001 19:52:15 -0400
Subject:DBI and HTML Display
From: Kevin Diffily <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Kevin
> Can anyone offer a simple example of retrieving informati
Oh my gosh, a question I can actually answer!
#! /usr/bin/perl -wT
use CGI;
use DBI;
#parse form data here or whatever else you need to do
### CONNECT TO DATABASE ###
$dbh = DBI->connect("DBI:mysql:nameofyourdatabase", "yourdatabase",
"password") || die $DBI::errstr;
### BUILD QUERY ##
- Kevin Diffily <[EMAIL PROTECTED]> on 07/15/01 19:52:15 -0400:
> Can anyone offer a simple example of retrieving information with DBI and
> displaying it in HTML? I am simply looking for the basic syntax.
>
> I am new to DBI but have pretty extensive Perl and Website experience.
HTML::Table
Can anyone offer a simple example of retrieving information with DBI and
displaying it in HTML? I am simply looking for the basic syntax.
I am new to DBI but have pretty extensive Perl and Website experience.
--
Kevin Diffily
InterNetWorkingSolutions
Enterprise Class Solutions for All Enterpri