Last active
May 8, 2019 09:57
-
-
Save SakshamInABox/991904b4e834b2de4362feba87aa53ab to your computer and use it in GitHub Desktop.
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
$table = "CREATE TABLE status ( | |
code INT(4) ZEROFILL AUTO_INCREMENT PRIMARY KEY NOT NULL, | |
date DATE NOT NULL, | |
status VARCHAR(512) NOT NULL, | |
sharePublic BOOLEAN, | |
shareFriends BOOLEAN, | |
shareMe BOOLEAN, | |
allowLike BOOLEAN, | |
allowComment BOOLEAN, | |
allowShare BOOLEAN)"; | |
if ($connection -> query($table) === TRUE) { | |
//Table Created | |
} | |
else { | |
//Creation Error | |
error_log ("Error Creating Table: " . $connection->error, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment