Tried this:
<?php
$cxn = mysqli_connect("localhost","henkbart","","customer")
or die("Couldn't connect to server");
$query = "SHOW COLUMNS customer";
$result = mysqli_query($cxn,$query);
echo $result;
?>
But nothing is happening? WHat am I doing wrong?
Changed to: $query = "SELECT * FROM customer"; .... But now it's giving a fatal error: Catchable fatal error: Object of class mysqli_result could not be converted to string in F:\xampp\htdocs\login\readtable.php on line 9
<?php
$cxn = mysqli_connect("localhost","henkbart","","customer")
or die("Couldn't connect to server");
$query = "SHOW COLUMNS customer";
$result = mysqli_query($cxn,$query);
echo $result;
?>
But nothing is happening? WHat am I doing wrong?
Changed to: $query = "SELECT * FROM customer"; .... But now it's giving a fatal error: Catchable fatal error: Object of class mysqli_result could not be converted to string in F:\xampp\htdocs\login\readtable.php on line 9