following example show you how to retrieve query the result using php.
<?php
//set your DB connection
mysql_connect('localhost', 'root', '');
//select your DB
mysql_select_db('test');
$query = "SHOW TABLES";
$result = mysql_query($query);
while($data = mysql_fetch_array($result))
{
echo $data[0];
echo '<br />';
}
?>

No comments:
Post a Comment