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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -