Oct 6th 2021, 11:58:04
enshula: you mean I should do something with this glorious piece of code?
if($maxprice>1000){$maxprice=10000;$ticks=1000;}
elseif($maxprice>500){$maxprice=1000;$ticks=100;}
elseif($maxprice>300){$maxprice=500;$ticks=50;}
elseif($maxprice>150){$maxprice=300;$ticks=30;}
elseif($maxprice>100){$maxprice=150;$ticks=30;}
else{$maxprice=100;$ticks=10;}
if($maxprice>1000){$maxprice=10000;$ticks=1000;}
elseif($maxprice>500){$maxprice=1000;$ticks=100;}
elseif($maxprice>300){$maxprice=500;$ticks=50;}
elseif($maxprice>150){$maxprice=300;$ticks=30;}
elseif($maxprice>100){$maxprice=150;$ticks=30;}
else{$maxprice=100;$ticks=10;}