Request for Automatic Put the name of your staff

This is guide mostly for website tools and code, for example CMS or registration scripts.
There can also be tools.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Request for Automatic Put the name of your staff

Postby Mike567 on Sun Feb 14, 2010 11:37 am

hi,

i want to request a website script that automatic put character name of your staff..

like example..




and if i want to make Rhizza acceslevel into 300... and Cheysey into 400.
just remember that Admin have a script that know 400 every character have acceslevel to put the name
and GM have a script that automatic know 300 every character have acceslevel to put the name.

so when i'm going to edit their acceslevel then the Admin and GM staff on website will automatic put their name. like example




thnx...
User avatar
Mike567
Antares
Antares
 
Posts: 392
Joined: Wed Mar 19, 2008 4:27 am
Location: Philippines

Re: Request for Automatic Put the name of your staff

Postby xPrend on Sun Feb 14, 2010 11:40 am

This should do the trick:
  1. $result = mysql_query("SELECT * FROM accounts
  2. WHERE acceslevel='300'");
  3.  
  4. echo "GMs:";
  5.  
  6. while($row = mysql_fetch_array($result))
  7.   {
  8.   echo $row['lastchar'];
  9.   echo "<br />";
  10.   }
  11.  
  12. $result = mysql_query("SELECT * FROM accounts
  13. WHERE acceslevel='400'");
  14.  
  15. echo "Admins:";
  16.  
  17. while($row = mysql_fetch_array($result))
  18.   {
  19.   echo $row['lastchar'];
  20.   echo "<br />";
  21.   }

and go on
User avatar
xPrend
Antares
Antares
 
Posts: 346
Joined: Fri Jul 17, 2009 9:22 am


Return to PHP / Web Guides, Scripts and tools.

Who is online

Users browsing this forum: No registered users and 4 guests