Created
February 13, 2018 04:12
-
-
Save malikkurosaki/a4f793f98e0d04df87e8885a49090c71 to your computer and use it in GitHub Desktop.
mysqli create table if not axists
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 | |
| require("../core/connect.php"); | |
| $fwrirte = "CREATE TABLE IF NOT EXISTS mytable(name VARCHAR(100) NOT NULL)"; | |
| $result = mysqli_query($con,$fwrirte); | |
| if($result){ | |
| echo "<br>table dibuat"; | |
| }else{ | |
| echo $con->error; | |
| } | |
| $con->close(); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment