I want to compile a list of different tables and find out if there are records in each one pertaining to the user that logs in, then display links for each of the tables. I can get all the tables to show:
<?php
mysql_connect("","","");
mysql_select_db("");
$query = "SELECT catagory FROM Dealers";
$result = mysql_query($query);
while ($row = mysql_fetch_array($result)){
printf("<tr><td>%s</td></tr>\n",
$row['catagory']
);
}
?>
Then I need to compile a list, and put them into another query,
SELECT * FROM "ALL TABLES" WHERE Some Conditon
Display Results as links, the links will be one of the TABLES.
Thanks in advance for the help.