NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page need quick php help

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 03-31-2008, 03:03 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Feb 2005
Posts: 165
alcapone is on a distinguished road
 



need quick php help


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;
????: NamePros.com http://www.namepros.com/programming/451773-need-quick-php-help.html
 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";
????: NamePros.com http://www.namepros.com/showthread.php?t=451773
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"
__________________
Hostile-Territory
alcapone is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 04:18 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger