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
|