Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 03-31-2008, 04:27 PM need quick php help
Super Talker

Posts: 121
Trades: 0
i have levels i use in a game of mine it goes per credits added and supporter status in the game everything is working except for level 3 when they added more then 99999 credits addeding more then 99999 credits gives you level 4 in the game but they cant reach level 4 unless they are a supporter so i need to keep them in level 3 level 3 works but only if they didnt add 99999 credit hope you under stand
any help would be great

here is the code im working with
PHP Code:
if(!$l)
{
 if(
$creditz[0]==0||$tmp_rows==0)
  
$lvl=1;
 else if(
$creditz[0]<40001&&$creditz[0]>0)
  
$lvl=2;
 else if(
$creditz[0]<100000&&$creditz[0]>40000)
  
$lvl=3;
 else if(
$creditz[0]>99999)
  
$lvl=4;
}
else
{
 
$lvl=$l;
}
if(
$lvl==1)
 
$lvlstring="stats.credits=0";
else if(
$lvl==2)
 
$lvlstring="stats.credits<40001 AND stats.credits>0";
else if(
$lvl==3)
 
$lvlstring="stats.credits<100000 AND stats.credits>40000";
else if(
$lvl==4)
 
$lvlstring="stats.credits>99999 AND $tab[pimp].status='Supporter'";
 
$sSQL "SELECT count(*) FROM users, stats,$tab[pimp] WHERE users.username = stats.user AND $tab[pimp].code=users.code AND $tab[pimp].networth>'$pmpz[1]' AND stats.round='$round' AND $lvlstring"
bikerboys is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to need quick php help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24046 seconds with 12 queries