Jump to content

print


grlayouts

Recommended Posts

any idea why

 

$sql = "UPDATE price SET cost = $q where ITEM = 'drugs'";

 

even print"$q"; doesnt show the price.

 


function price ($q)
{
    if ($q > 1000000) return 25;
    return ceil($q * -275 / 1000000) + 300;
}

$qtys = $q2;
foreach ($qtys as $q) 
{
    echo "$q :" . price($q) . '<br>';
}  
mysql_query('UPDATE players SET drugs = drugs + (drugfact*2), dpayout = (drugfact*2);');
mysql_query('UPDATE players SET credits = credits - (employees*wages)');
$sql = "UPDATE price SET cost = $q where ITEM = 'drugs'";

[code]

[/code]

Link to comment
https://forums.phpfreaks.com/topic/78784-print/
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.