Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Database/World Building

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 10-17-2003, 12:28 AM
Edgar1898
Senior Member
Former EQEmu Developer
Current EQ2Emu Lead Developer
 
Join Date: Dec 2002
Posts: 1,065
Default

no, there is no reason to do all that stuff when you could just read my first post.

...fine I'll write the code for you.....

this is generic code based on php, you might have to make a couple of changes for it to work properly
$warrior=1;
$cleric=2;
...
$class=$cleric; (whatever class your looking for based on your page or whatever)
$result=mysql_query("select *from items where mid(reverse(bin(classes)),".$class.",1)=1");
while ($row = mysql_fetch_array($result)){
....
Whatever code you want here
....
}

note: I dont have access to a mysql server atm so I cant test it properly, but this should work just fine. If you have any problems let me know.
__________________
Lethal Encounter
Reply With Quote
 


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

Forum Jump

   

All times are GMT -4. The time now is 12:04 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3