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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Snitz sql question
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

cripto9t
Average Member

USA
881 Posts

Posted - 29 January 2004 :  16:29:30  Show Profile
I hope someone can clue me in on this so I don't waste my time trying it again .
In the Snitz forum sql they have something like this:
SELECT C.CAT_ID

When I try to use this method I get an "unknown table" error. So I have to write like this (all the mods I've looked through use this also) :
SELECT " & strTablePrefix & " CATEGORY.CAT_ID

I've searched through the files and forums for an answer to this a few times in the past with no success. I thought I'd ask this time .

    _-/Cripto9t\-_

redbrad0
Advanced Member

USA
3725 Posts

Posted - 29 January 2004 :  16:33:06  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Well its more like this...

SELECT C.CATID, F.FORUMID FROM FORUM F, CAT C WHERE CID=XXX

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 29 January 2004 :  16:35:42  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Sorry maybe I should say a little more. After your specify the table name to pull the information out of you can give it a smaller name (alias) for easier reference so when you say FROM FORUM F Then you are saying everytime you do F.BLAH then F really means FORUM

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 29 January 2004 :  16:52:52  Show Profile
Aha!
I see it . Thanks redbrad0
" FROM " & strTablePrefix & "CATEGORY C, " & _

    _-/Cripto9t\-_
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 29 January 2004 :  16:59:24  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
No problem

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
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.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07