Do Some Database Stuff - 1

Non-select statement, single row result

$language = ‘perl’;

$language = $dbh->($language);

$sql = qq[INSERT INTO compilers

(language) VALUES ($language)];

$result = $dbh->($sql);

if ($result != 1) {

# Some error handler here

}

$dbh->();

Previous slide Next slide Back to first slide View graphic version