i have written a page which consists of a frameset and two pages included. you can enter a clients details in the top one and then you select the company they work for from a provided list, wich is populated by the following php script from MySQL
$sql = "SELECT companyname FROM companies ORDER BY companyname ASC";
$sql_result = mysql_query("$sql", $db)
or die("Unable to execute query:<br>$sql<br>Error: " . mysql_error());
while ($row = mysql_fetch_array($sql_result)) {
$companies = $row["companyname"];
$option_block .= "<OPTION value=\"$companies\">$companies</OPTION>";
}
Does anyone know if there is a way I can get this to update say every 20 seconds so the combo box shows the latest addition without a refresh.
Cheers