Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Show all DB Tables in php


$servername = "localhost";
$username = "root";
$password = "";
$dbname = "dbms";

$conn = new mysqli($servername, $username, $password, $dbname);
$sql = "show tables LIKE '%student%'";

$result = mysqli_query($conn, $sql); // run the query and assign the result to $result
while($table = mysqli_fetch_array($result)) { // go through each row that was returned in $result
    echo($table[0] . "<BR>");    // print the table that was returned on that row.

}
Comment

PREVIOUS NEXT
Code Example
Php :: jquery ajax 500 internal server error php 
Php :: laravel public access inserver using htaccess 
Php :: wp-config.php repair 
Php :: php search in array case insensitive 
Php :: php pdo Check if row exists in the database 
Php :: php see if undefined 
Php :: operador in laravel 
Php :: insert php variable css 
Php :: closing a php 
Php :: how to add woocommerce cart counter 
Php :: How to add new column in table laravel 
Php :: install php linux nginx command line 
Php :: share link in facebook php 
Php :: default index page for laravel in cpanel 
Php :: how to make a model in folder in laravel 
Php :: htmlspecialchars() expects parameter 1 to be string 
Php :: remove decimal php 
Php :: laravel db::query update 
Php :: yii2 arraydataprovider 
Php :: composer clear cache 
Php :: laravel get file contents from storage 
Php :: how to exclude csrf in a route laravel 
Php :: foreign key in laravel 
Php :: migrate only one table laravel 
Php :: sha256 in php 
Php :: php set alternatives 
Php :: if browser url is having domain in it check using php 
Php :: toarray php 
Php :: php remove element from array 
Php :: count number of rows laravel controller 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =