mysql_select_db($database_testscript, $testscript);
$query_rs1_province = "SELECT * FROM typeoffood ORDER BY code ASC";
$rs1_province = mysql_query($query_rs1_province, $testscript) or die(mysql_error());
$row_rs1_province = mysql_fetch_assoc($rs1_province);
$totalRows_rs1_province = mysql_num_rows($rs1_province);
mysql_select_db($database_testscript, $testscript);
$query_rs1_aumphor = "SELECT * FROM product";
$rs1_aumphor = mysql_query($query_rs1_aumphor, $testscript) or die(mysql_error());
$row_rs1_aumphor = mysql_fetch_assoc($rs1_aumphor);
$totalRows_rs1_aumphor = mysql_num_rows($rs1_aumphor);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<script language="javascript" type="text/javascript">
function changeDynaList( listname, source, key, orig_key, orig_val ) {
var list = eval( 'document.form1.' + listname );
// empty the list
for (i in list.options.length) {
list.options = null;
}
i = 0;
for (x in source) {
if (source[x][0] == key) {
opt = new Option();
opt.value = source[x][1];
opt.text = source[x][2];