I try to execute the following code in my drupal blog page:
Adding products now...
$dbh = dba_open( "products", "c", "cdb" )
or die( "Couldn't open database" );
dba_insert( "Sonic Screwdriver", 23.20, $dbh);
dba_insert( "Tricorder", 55.50, $dbh);
dba_insert( "ORAC AI", 2200.50, $dbh);
dba_insert( "HAL 2000", 4500.00, $dbh);
dba_close( $dbh );
It should create or open a database called products and adds some data to it.
It gives the following error.