Jump to content
MakeWebGames

gang price based on ammount of gangs


POG1

Recommended Posts

because people dont have like 500k when they start and i many people like gangs

want to have the price depending on how many gangs there are..

i have tried this

$amount=$db->query("SELECT count(*) FROM gangs");

$cost=10000;

$price=$amount * $cost;

$priceput=money_formatter($price);

priceput only returns 11 even if there would be a million gangs

Link to comment
Share on other sites

  • 5 months later...
Guest Anonymous

Re: gang price based on ammount of gangs

Close....

SELECT * FROM table WHERE field IN (element, element, element)

ie.

SELECT userid, username FROM users WHERE user_level IN (2, 3);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...