. Advertisement .
..3..
. Advertisement .
..4..
It’s as easy as it sounds, I’ve conducted some research but am having difficulty in figuring this out. How to Check If Table Exists Sql Php? If anyone knows please let me know
In the absence of this, if you need to confirm for the presence of the Table within a specific Schema and also the Specified Database then we can formulate the query below:
if ($result = $mysqli->query("SHOW TABLES LIKE '".$table."'")) {
if($result->num_rows == 1) {
echo "Table exists";
}
}
else {
echo "Table does not exist";
}
Everything will be made clear to you via the following way.