Skip to content

Instantly share code, notes, and snippets.

@karellism
Created November 1, 2015 02:37
Show Gist options
  • Save karellism/4032ca9e5d270040f9a2 to your computer and use it in GitHub Desktop.
Save karellism/4032ca9e5d270040f9a2 to your computer and use it in GitHub Desktop.
Create a database for the simple CMS - php file
private function buildDB() {
$sql = <<<MySQL_QUERY
CREATE TABLE IF NOT EXISTS testDB (
title VARCHAR(150),
bodytext TEXT,
created VARCHAR(100)
)
MySQL_QUERY;
return mysql_query($sql);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment