Skip to content

Instantly share code, notes, and snippets.

@malikkurosaki
Created February 13, 2018 04:12
Show Gist options
  • Save malikkurosaki/a4f793f98e0d04df87e8885a49090c71 to your computer and use it in GitHub Desktop.
Save malikkurosaki/a4f793f98e0d04df87e8885a49090c71 to your computer and use it in GitHub Desktop.
mysqli create table if not axists
<?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