On Wed, 24 Jul 2002, Simon wrote:
Hi everyone, I want to make sure a some values are added into a table but am having some problems.. I'm trying to use the following
$dbh = DBI->connect('dbi:mysql:dbname','user','passwd');
if($dbh->do("insert into <table-name> value('$data1','$data2 etc...)") == 1) { blah blah } else { blah blah }
But I keep on getting an error about an undefined subroutine... help please..
TIA
SImon
Hi Simon Do you have Use DBI; Use DBD::mysql; At the top of your programme? If not it wont work. Chris -- Chris *************************************************************************** E Mail Chris@glovercc.clara.co.uk WWW http://www.glovercc.clara.co.uk Someday, we'll look back on this, laugh nervously and change the subject. -Anon