Created
November 1, 2015 02:37
-
-
Save karellism/4032ca9e5d270040f9a2 to your computer and use it in GitHub Desktop.
Create a database for the simple CMS - php file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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