Skip to content

Instantly share code, notes, and snippets.

@malikkurosaki
Created February 13, 2018 04:58
Show Gist options
  • Save malikkurosaki/d1926608acfc8a0df11ed45ff509005a to your computer and use it in GitHub Desktop.
Save malikkurosaki/d1926608acfc8a0df11ed45ff509005a to your computer and use it in GitHub Desktop.
check if table name exist or not exist
<?php
require("../core/connect.php");
$query = "SELECT * FROM tablename";
$result = mysqli_query($con,$query);
if($result){
echo "table name is exist";
}else{
echo "table name is not exist";
}
$con->close();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment