Jump to content
MakeWebGames

Please Help!


Joel

Recommended Posts

Im having big trouble with my game, I need help with some codes, Like Inventory, Market, Item Market, And Mail Box, Right ive got a Image as the Background and when people get loads off mails and items and stuff the Text will go off the Image, So im wondering if anyone can make something so they stay on the image like Pages, So like they click (Page 2) or something after 10 mails or 10 Items, Please help Im still Learning CSS and PHP Coding, Thanks Alot if you Help Me out :)

Link to comment
Share on other sites

Re: Please Help!

Ok i took the code out off userlist.php and tryed and put it in inventory.php, but its not seem to be working ive tried loads off things, I dont get no errors or nothing it just dont work, This is the code i made:

 

$cnt=mysql_query("SELECT inv_itemid FROM inventory",$c);
$membs=mysql_num_rows($cnt);
$pages=(int) ($membs/2)+1;
if($membs % 2 == 0)
{
$pages--;
}
print "Pages: ";
for($i=1;$i <= $pages;$i++)

 

Please could you help me, Thanks

Link to comment
Share on other sites

Re: Please Help!

Ok so i Guess no One no's the Answer to that but is there a way where you can make medium size boxes so you can put your text in there Like the code box below

 

example
example
example
example
example
example
example
example
example
example
example
example

I want a box like the one above with a scroll Thing on it, In my game, Can some one please tell me how i cand Do this Thanks!

Link to comment
Share on other sites

Re: Please Help!

v1 or v2?

I'm going to assume v1 since i see alot of mysql_

Basically what you would have to do is take that piece of code u just pasted and a little more, and change $membs to something like $mail and a few other ideas. If i figure this out i'll let you know.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...