Last active
August 6, 2018 08:21
-
-
Save malikkurosaki/184bd3b00548b0ae60e5ef7d78b71144 to your computer and use it in GitHub Desktop.
sqite3 add collumn indo table
This file contains hidden or 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
<?php | |
$db = new SQLite3("ayu.db"); | |
$perintah = <<<EOD | |
ALTER TABLE biodata | |
ADD COLUMN umur text NOT NULL | |
EOD; | |
$laksanakan = $db->query($perintah); | |
if(!$laksanakan){ | |
echo $db->lastErrorMsg(); | |
}else{ | |
echo "perintah menambah colomdilaksanakan dengan sempurna \n"; | |
} | |
$db->close(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment