new_order.php
//functions to populate product type, model, brand and detail
functions to populate product type, model, brand and detail
functions to populate product type model brand and detail
function fill_product_type($conn) {
    $output = '';
    $sql = "SELECT distinct Product_Type from Product_Master";
    mysql_select_db('optic_db');
    $retval = mysql_query($sql, $conn);
    while ($row = mysql_fetch_array($retval)) {
        $output .= '<option value="' . $row["Product_Type"] . '">' . $row["Product_Type"] . '</option>';
    }
    return $output;
}
function fill_product_type ( $ conn ) { $ output = '' ; $ sql = " SELECT distinct Product_Type from Product_Master " ; mysql_select_db ( 'optic_db' ) ; $ retval = mysql_query ( $ sql , $ conn ) ; while ( $ row = mysql_fetch_array ( $ retval ) ) { $ output .= '<option value="' . $ row [ " Product_Type " ] . '">' . $ row [ " Product_Type " ] . '</option>' ; } return $ output ; }
functions to populate product type, model, brand and detail
functions to populate product type model brand and detail