Hello!
I need create drop down databases list form external server. I create code but not working. PHP code i tested and they work but i don,t know how to join with drop down. Please help me with the code. For help big thanks
I need create drop down databases list form external server. I create code but not working. PHP code i tested and they work but i don,t know how to join with drop down. Please help me with the code. For help big thanks
<div class="form_item">
<div class="form_element cf_dropdown">
<label class="cf_label" style="width: 150px;">Representative:</label>
<select class="cf_inputbox" id="select_23" size="1" title="" name="Rep">
<option value="">Choose Option</option>
<?php
$con = mysql_connect("....", "...", "....");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$db_list = mysql_list_dbs($con);
while ($db = mysql_fetch_object($db_list))
{
echo $db->Database . "<br />";
}
mysql_close($con);
?>
</select>
</div>
<div class="cfclear"> </div>
</div>