Can i use image_reg from table, for show other values??? I.e. When will change value of "image_reg" from dropdown, it will show me value from image_airline?
V@no, i`ve extract info from image_reg with this code:
//-----------------------------------------------------
// --- Choose autofill - Start --------------------------
//-----------------------------------------------------
$sql = "SELECT image_reg, image_airline
FROM ". IMAGES_TABLE ."";
$result = mysql_query($sql);
$image_autofill .= "<select name=\"image_reg\">";
$image_autofill .= "<option value=\"0\">-- Choose Reg --</option>";
while($row = mysql_fetch_array($result)){
$image_autofill .= "<option value=\"$row[image_reg]\" name=\"image_autofill\">$row[image_reg]</option>";
}
$image_autofill .= "</select>";
$site_template->register_vars("image_autofill", $image_autofill);
unset($image_autofill);
//-----------------------------------------------------
// --- Choose autofill - End ----------------------------
//-----------------------------------------------------
Can i show image_airline value, if will change one of image_reg?