Re: AW: Using mysql

2003-09-26 Thread Chris Reinhardt
On Fri, 26 Sep 2003 [EMAIL PROTECTED] wrote: > I haven't looked at Apache::DBI but will the following code for DBI work > for the Apache::DBI? [snip code] Perhaps you should look at it first, ask questions second. :-) http://search.cpan.org/perldoc?Apache::DBI -- Chris Reinhardt -- [EMAI

Re: AW: Using mysql

2003-09-26 Thread perl
I haven't looked at Apache::DBI but will the following code for DBI work for the Apache::DBI? use DBI; $dbh = DBI->connect('dbi:mysql:mydb','foo', 'hoo'); $sql = "SELECT * FROM mytab"; $sth = $dbh->prepare($sql); $sth->execute || die "Could not execute SQL statement: $!\n"; thanks, -rkl > I woul