Created
February 13, 2018 04:58
-
-
Save malikkurosaki/d1926608acfc8a0df11ed45ff509005a to your computer and use it in GitHub Desktop.
check if table name exist or not exist
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"); | |
$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