Search
 
SCRIPT & CODE EXAMPLE
 

PHP

check if table exists sql php

if ($result = $mysqli->query("SHOW TABLES LIKE '".$table."'")) {
    if($result->num_rows == 1) {
        echo "Table exists";
    }
}
else {
    echo "Table does not exist";
}
Comment

PREVIOUS NEXT
Code Example
Php :: how to check if username already exists in php 
Php :: php pdo get database name 
Php :: magento 2 get connection 
Php :: how to use join query in codeigniter 
Php :: typo3 debug 
Php :: form post self php 
Php :: laravel csrf-token in view 
Php :: php json_encode encode not escape forward slash 
Php :: laravel return 1 as true 
Php :: php yesterday 
Php :: convert to int laravel 
Php :: integer default value laravel 
Php :: woocommerce-cart-count 
Php :: current timestamp carbon 
Php :: how to set field type of date of birth in laravel 
Php :: check input value is integer or not in php 
Php :: why css not working with php file 
Php :: get all pages list from specific template 
Php :: php create file html 
Php :: php get extension from string 
Php :: php redirect if not logged in 
Php :: Date time format for laravel validation 
Php :: witherrors laravel 
Php :: remove register route in laravel 
Php :: laravel enum migration 
Php :: switch in laravel 
Php :: Object of class DateTime could not be converted to string 
Php :: php get hdd serial number 
Php :: string to bool php 
Php :: force https redirect php 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =