Question/Help

Stevee

Posting Freak
Mar 29, 2011
580
35
Is it possible for someone to code a plugin for revCMS kinda like uberCMS has so you can view someones inventory, like what's in there hand items?

thanks.
Steve
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,461
Well, the code is pretty simple. However, you need to link the base_item with the furniture id fields.

PHP:
<?php
$base_items = mysql_query("SELECT base_item FROM items WHERE user_id='".$_SESSION['user']['id']."' ") or die(mysql_error());
$getFurniture = mysql_query("SELECT * FROM furniture WHERE base_item='".$base_items."' ") or die(mysql_error());
 
while($row = mysql_fetch_array($getFurniture){
echo "Public name: $row['public_name'];<br />";
echo "Item name: $row['item_name'];<br />";
}
 
?>

I am not sure if this works, but its something like this.
 

Users who are viewing this thread

Top