Jump to content

[SOLVED] wont update.


grlayouts

Recommended Posts

i have a query that wont add..

 

$pr = mysql_fetch_array(mysql_query("SELECT boost FROM boosts;"));


function price ($q)
{
    if ($q > 1000000) return 25;
    return ceil($q * -275 / 1000000 + 750) +$pr[boost];

 

everything a part from the last bit +$pr[boost]; adds together. when i print $pr[boosts] i get the correct 50. but it wont add.

 

 

any idea's?

Link to comment
https://forums.phpfreaks.com/topic/110320-solved-wont-update/
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.