SunQuest
           ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #16  
Old May 13th, 2004, 11:18 AM
bfolger71 bfolger71 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Boston, MA
Posts: 47 bfolger71 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 34 sec
Reputation Power: 5
Hi Carmen - the purpose is to output the SQL statement, so that you can ensure it is being correctly assembled (specifically, that URL.PictureID is being passed properly). Sounds like it is?

Reply With Quote
  #17  
Old May 13th, 2004, 11:25 AM
carment carment is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 21 carment User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes, I can see the pictureID.
You know another idea that I had (that's in case you run out of ideas :-), is maybe I can get rid of the general_categories table, and insert an array of checkboxes (associated with categories, including one that defaults to none) in the media table. This way, I don't have to go across tables to look for things. What do you think? Is this a good solution, given that I have 48 categories? Can you recommend an optimal way to do this instead?
Thank you soooo much!
Carmen
Oh - I sent you a message to your forum mailbox (do you ever check those?) I just discovered that feature recently :-)

Reply With Quote
  #18  
Old May 13th, 2004, 12:22 PM
bfolger71 bfolger71 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Boston, MA
Posts: 47 bfolger71 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 34 sec
Reputation Power: 5
Hi Carmen -

The setup you've described is doable, but it won't be as efficient in most cases. Not to mention it's a pain to maintain. The join/lookup table approach that you already have would be my recommendation. I'll defer to any DBA on that, though...

Sorry - can't shed any more light on the Access problem... I've heard that Access has some quirkiness about it with respect ot INNER JOINS. Are you sure that all the fields being referenced as IDs are numeric? You might try submitting a post to the SQL or Access forums to see if anyone there might be able to help.

Good luck!

Reply With Quote
  #19  
Old May 14th, 2004, 04:40 PM
carment carment is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 21 carment User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Brad,
I took your advice and posted the question about the inner join code to another forum and I found out that access requires multiple joins to be parenthesized!!! So now, I can actually see the info about a graphic I select. However, even though I see the checkboxes, there is no category name next to them, and none of them are checked. I am using the query you suggested
<cfoutput query="getAllCategories">
<td width="20%" align="left" valign="left" class="labelcell">
<input type="checkbox" name="General_CatID" value="#gc_ID#" <cfloop index="x" from="1" to="#ListLen(ActualList)#"><cfif #ListGetAt(ActualList, "#x#")# eq #gc_ID#>CHECKED</cfif></cfloop>#General_Category#

</td>
...Any idea what may be wrong? I am not getting any errors.
Thanks again,
Carmen

Reply With Quote
  #20  
Old May 14th, 2004, 07:10 PM
carment carment is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 21 carment User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Brad, I figured it out! There was an end tag missing. Everything is working now! Thanks again for all your help!
C

Reply With Quote
  #21  
Old May 14th, 2004, 10:29 PM
r937's Avatar
r937 r937 is offline
SQL Consultant
Dev Shed God 25th Plane (17000 - 17499 posts)
 
Join Date: Feb 2003
Location: Toronto Canada
Posts: 17,344 r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 5 Days 8 h 30 m 33 sec
Reputation Power: 891
Quote:
Originally Posted by carment
Brad, I figured it out!

no you didn't

i did

http://forums.devshed.com/showthread.php?t=147758
__________________
r937.com | rudy.ca

Reply With Quote
  #22  
Old May 15th, 2004, 11:10 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,627 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 8 m 55 sec
Reputation Power: 53
LOL!

Reply With Quote
  #23  
Old May 15th, 2004, 11:59 AM
carment carment is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 21 carment User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If you read two messages up, I did give you credit!!! So I don't feel bad :-) Thanks again guys for helping me!

Reply With Quote
  #24  
Old May 16th, 2004, 07:12 AM
bfolger71 bfolger71 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Boston, MA
Posts: 47 bfolger71 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 34 sec
Reputation Power: 5
Great, Carmen

Last edited by bfolger71 : May 16th, 2004 at 07:39 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > insert records in junction table


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway