![]() |
#23
|
|||
|
|||
![]()
I think the inventory script was for 1.1.X and I think you're using 1.2.0
And the furthest editing I got for the inventory script was: Code:
<?php include("inc/functions.php"); include("inc/config.php"); //***************// // START SCRIPT // //***************// $themeurl = grabanysetting("themeurl"); $links = getlinks(); $ads = getads("any"); $pagecontent = getsitecontent("index"); $article_title = $pagecontent[title]; $article_content = $pagecontent[content]; $article_content = nl2br($article_content); $article_title = "Your Inventory"; if ($isloggedin == "yes") { $article_content = "Here you can see a list of items that you have collected.<table width='500' border='2'> <tr> <td width='200'><strong>Picture:</strong></td> <td width='230'><strong>Item Type: </strong></td> <td width='70'><strong>ID Number:</strong></td> </tr>"; $query = "SELECT * FROM ".$prefix."useritems WHERE Owner = '$loggedinname'"; $result = mysql_query($query); $num = mysql_numrows($result); $i=0; while ($i < $num) { $iid=@mysql_result($result,$i,"ID"); $object=@mysql_result($result,$i,"Item"); $url=@mysql_result($result,$i,"imageurl"); $article_content = $article_content."<tr> <td><center><img src='".$url."'></center></td> <td><center>".$object."</center></td> <td><center>".$iid."</center></td> </tr>"; unset($iid); unset($object); $i = $i + 1; } $article_content = $article_content."</table>"; } else { $article_content = "You must be logged in to view items."; } //***************// // OUTPUT PAGE // //***************// echo showpage($article_title, $article_content, $date); ?> Code:
id, int(11), not null, auto_increment owner, varchar(40), latin1_general_ci, yes (NULL) itemtype, varchar(40), latin1_general_ci, yes (NULL) imgurl, varchar(120), latin1_general_ci, yes (NULL)
__________________
Regards, ...the CSS lovin' cookie monster... ~C.Maestro ![]() ![]() ___________________ I'd like to think I'm good at CSS&HTML, so if you need help with designing templates and stuff, feel free to 'come at me bro' with the questions. Haha, also if you need help with installing the Mysidia Adoptables Script, please check out my guide here! |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need Help With a Few Things | parayna | Questions and Supports | 3 | 09-28-2015 06:51 AM |
Just 2 more things | Starrunner | Questions and Supports | 17 | 01-12-2014 07:31 PM |
A few more little things... | Ruinily | Questions and Supports | 0 | 07-03-2013 08:16 PM |
few things help | 12345 | Questions and Supports | 1 | 05-05-2009 04:23 PM |
Few things | 12345 | Questions and Supports | 1 | 04-21-2009 03:42 PM |
What's New? |
What's Hot? |
What's Popular? |