Hi, I have made a bit progress. I have the list of data from a column in the Table, to Combo Box. I have used the following code in my Joomla article:
Code:
{source}
<select>
<option value="" selected>Select a country</option>
<?php
$link = mysql_connect("Domain_Name","DB_User","DB_User_Passwd");
if (!$link)
{ die('Could not connect to Database: ' . mysql_error());
}
mysql_select_db("conct",$link);
$category = "SELECT Country_Name FROM Test_Country";
$query_result = mysql_query($category);
while($result = mysql_fetch_assoc($query_result))
{
?>
<option value = "<?php echo $result['Country_Name']?>"><?php echo $result['Country_Name']?></option>
<?php
} ?>
</select>
{/source}
But, I want as soon as I click on any item on the list, another list of data will retrieve from corresponding table. Just as example on the top, in my site. Is there anyone may help me, please.
Thanking you in advance.
Raihan
UK
Bookmarks