Thread: item db
View Single Post
  #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