Jump to content

Maths difficulties


spearchilduser

Recommended Posts

Hi thanx for the reply im not sure how i wodul fir that in though as i want it to be put into a switch so that on each case ( if statement) it will search the datase for amounts that are <= the variable amount

 

atm ive got this

 

$lowav_price = 0;

$medlowav_price = 0.75 * $av_price;

 

case '1' : $price_low = $lowav_price; $price_high = $medlowav_price ;

 

so would i leave the variables as say

 

$lowav_price = 0;

$medlowav_price = 0.75 * $av_price;

 

and then change

 

case '1' : $price_low = $lowav_price; $price_high = (<= $medlowav_price)

 

thankx

 

Link to comment
https://forums.phpfreaks.com/topic/252119-maths-difficulties/#findComment-1292580
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.