mysql - Php if up to an amount -
i trying use if statement increase db row ($row[cost
]) 20% not including different row. of code is: $row-->cost/.80 want not hit maximumbid held in query:
$result = $wpdb->get_results( "select bp.*, b.company `windows_brands_products` bp left join `windows_brands` b on bp.brand_id = b.id join windows_last_submissions ls join windows_materials wm ls.username = '$current_user->user_login' , bp.width = round(ls.width) , bp.height = round(ls.height) , bp.material in (wm.name) , bp.type = ls.type , if (ls.minimumbid != '0.00',bp.cost between ls.minimumbid , ls.maximumbid,bp.cost <= ls.maximumbid) order b.company asc");
question being how reference row minimumbid can prevent 80%increase hitting maximumbid?
Comments
Post a Comment