Hi People.
I have a site that runs joomla, http://www.airfieldcards.com and would like to move away from Joomla because, every time I add an airfield card. I have to duplicate the work in Joomla to make a menu item.
I would like the menu to be dynamically driven in php.
I have this code to fetch the airfield names from the database.
[php] <?php include(“db_connect.php”);
$users_sql = “SELECT * FROM users ORDER by username”;
$users_query = mysql_query($users_sql) or die (mysql_error());
$rsUsers = mysql_fetch_assoc ($users_query);
//$id = ( !isset ( $id ) ) ? ( int ) $_GET [ “user_id” ] : $id ;
?>
Airfields By Name
<?php do {?>
How do I make a click even on one of the menu items so that the correct card shows up in the “right hand” part of the webpage. For example, when I click on Abbotts Bromley, the card’s ID that should show up is “67”