In PHP, what would be the best way of seeing if a table exists?
This is what I am using so far
public function TableExists($table) { $res = $thi
$con = mysqli_connect($hostname,$username,$password,$database); if(mysqli_num_rows(mysqli_query($con,"SHOW TABLES LIKE 'accman'"))) { echo "DB EXIST"; } else { echo "DB Not Exist"; }