open('./ggdworkshop.db'); } function schema(){ $sql =<<exec($sql); if(!$ret){ echo $this->lastErrorMsg(); } else { echo "Schema created successfully\n"; } $this->close(); } } $db = new DB(); if(!$db){ echo $db->lastErrorMsg(); }else{ echo "Opened database successfully\n"; } $db->schema(); ?>