<?php // createdb.php
try
{
require ("./files/connection.php");
//create the database table
$db->exec("CREATE TABLE IF NOT EXISTS Class (Id INTEGER PRIMARY KEY, Course TEXT, Name TEXT, Grade INTEGER)");
// close the database connection
$db = NULL;
}
catch(PDOException $e)
{
print 'Exception : '.$e->getMessage();
}
?>
My Web Design & Development
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.