Check your installation. It is definately there.
--Neil
>-Original Message-
>From: Alex Algard [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, July 14, 2001 9:16 AM
>To: [EMAIL PROTECTED]
>Subject: fetchall_hashref() - does/will it exist?
>
>
>I just downloaded DBI 1.18, and although the
>"
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
One addendum I forgot to copy my DBConnect sub into the mail. Now
included.
> Hopefully this is the right place for this, if there is a list for
> DBIx::Recordset let me know.
>
> Started playing with DBIx::Recordset and I'm trying to initialize it
> with a DBI created database handle.
>
> Here
Hopefully this is the right place for this, if there is a list for
DBIx::Recordset let me know.
Started playing with DBIx::Recordset and I'm trying to initialize it
with a DBI created database handle.
Here is what the docs say:
!DataSource
Specifies the database to which to connect. This i
On Sat, Jul 14, 2001 at 05:00:11PM -0700, Alex Algard wrote:
> > It was a mistake. I've deleted it now. Use...
> > $ary_ref = $sth->fetchall_arrayref( {} );
>
> That's actually what I'm doing now. My concern is that using
> fetchall_arrayref() by passing an anonymous hash as an argument is
>
On Sat, 14 Jul 2001 17:00:11 -0700, Alex Algard wrote:
>So please consider adding fetchall_hashref() to DBI.
Untested code:
package DBD::_::st;
sub fetchall_hashref {
splice @_, 1, 0, {};
&fetchall_arrayref;
}
--
Bart.