Jump to content

How can I figure out how to show this?


Gingechilla

Recommended Posts

I have the following tables in my database:

items < Holds all over the items information ect.

userinfo < Holds information on user

usersitems < Holds what the user has got.


From the search page a user can add things from the items table into the usersitems table, that works fine.

The problem I have is, how can I show what items a user does not have?
Link to comment
Share on other sites

[!--quoteo(post=364029:date=Apr 12 2006, 01:56 PM:name=Gingechilla)--][div class=\'quotetop\']QUOTE(Gingechilla @ Apr 12 2006, 01:56 PM) [snapback]364029[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I have the following tables in my database:

items < Holds all over the items information ect.

userinfo < Holds information on user

usersitems < Holds what the user has got.
From the search page a user can add things from the items table into the usersitems table, that works fine.

The problem I have is, how can I show what a user does not have?
[/quote]

post your code to see ok but sometihnk like this i think.

ALWAYS BACK YOUR DATAUP BEFORE USEING ANY OF MY CODE.

[code]

if($items <0) {
echo"this user has no items!";

}else{

if($userinfo < 0) {

echo " this user has no userinfo!";

}else{

if($usersitems < 0) {

echo"this user has no user items!";
}
[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.