Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 I need help......
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Borgis1
Starting Member

3 Posts

Posted - 27 January 2005 :  21:43:07  Show Profile
Is there any way i can make the ASP code search for 2 items in the database and only display them on the page?
I.E: search for MemberLVL and WhatGame and display only the ones that have what i am looking for?
The URL i am trying to make it work with is (http://rse1.game-host.org/memlist2.asp), i want the code to only display whats on the page but only if the game they play is 'Both' or 'ST-A1'. I hope some one can help me with my problem.

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 28 January 2005 :  05:02:16  Show Profile
The SQL statement you'd need would go a little something like this:

SELECT FIELDS FROM TABLE WHERE MemberLVL=x AND (WhatGame='Both' OR WhatGame='ST-A1')

You'll need to change the items highlighted in green to suit your needs and I'm assuming above that the MemberLVL field is a numeric field. If it's not, you'll need to enclose the value you're checking for in single quotes (MemberLVL='String')


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Borgis1
Starting Member

3 Posts

Posted - 28 January 2005 :  07:40:41  Show Profile
dang you beat be to posting. I have it all done now, I got it working but then my ORDER BY 'SQL statement' wasn't working so i had to combined them together to make them work sooo i have every thing i need done and working just right.
If you would like to take a peek at it then go to (http://rse1.game-host.org/signup.asp) but please when your done looking around delete your membership by going to the 'Membership" part of the menu and then going to "Change Details" and click the botton that says "Delete Membership", Thank you for the help.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07