in reply to Right answer (wrong question...)

You haven't shown any code that tries to establish a connection to a mysql database server. Do you have such code already? If you do, does it include error checking to make sure the connection is established, and/or is it generatng any database-related error messages? If you don't, are you asking how to connect to mysql from within a CGI script? In other words, do you already have some lines in your script that resemble the following:
use DBI; ... my $db_handle = DBI->connect( "DBI:mysql:database=$dbname;host=$hostna +me", $username, $password ) or die "MySQL connection failed: $DBI::errstr"; ... # make up an sql statement string and a set of parameter values # and execute it, as suggested in jeffa's reply...

Replies are listed 'Best First'.
Re: Re: Right answer (wrong question...)
by bobafifi (Beadle) on Feb 22, 2004 at 23:31 UTC