Code to list the tables from a mysql database
Posted: Fri Nov 25, 2005 3:10 pm
Newbie here. My site is http://www.makeadifference.in. I currently have html list on the front page of counties that link to pages that call the information from the database.
I have created the connection to the database with a config.php file:
I have created the connection to the database with a config.php file:
I now want to display the list of counties (which are the table names in the mysql database) so they output in list format with links also:<?php
$dbhost = 'myserver';
$dbuser = 'myuser';
$dbpass = 'mypassword';
$dbname = 'mydbname';
?>
Can someone help?Example: <a href="$tablename">$tablename</a>