RE: Passing a query string as a single url variable

2006-05-26 Thread WebMistress
Funny but when I mouse over it has it encoded.  Here's the source of my output
page.

Here is the qrystr encoded:
name%3DJane%26eyes%3Dbrown%26hair%3Dblond%26number%3D2125551234br a
href=http://www.hfdkldf.com/main.cfm?action=saveinfoqrystr=name%3DJane%26eyes%
3Dbrown%26hair%3Dblond%26number%3D2125551234save her info/a

Thank you,
Katrina Chapman
Center Manager
Whittier Community Center
435-753-9008
 

 -Original Message-
 From: Christophe Maso [mailto:[EMAIL PROTECTED] 
 Sent: Friday, May 26, 2006 12:26 PM
 To: CF-Talk
 Subject: Passing a query string as a single url variable
 
 Trying to pass a custom query string to a template through 
 the URL, example (assume all inside cfoutput tags):
 
 cfset qrystr=name=Janeeyes=brownhair=blondnumber=2125551234
 Here is the qrystr encoded: #URLEncodedFormat(qrystr)#br a 
 href=http://www.hfdkldf.com/main.cfm?action=saveinfoqrystr=#
URLEncodedFormat(qrystr)#save her info/a
 
 Testing this out, I'm seeing that the second line's output 
 indeed shows qrystr with = and  replaced by %3D and 
 %26, respectively. However, when I mouseover the link on 
 line 3 and look at the URL in the status bar, I see the 
 link's url does not have qrystr encoded. So, the receiving 
 template is going to see qrystr only as name=Jane, and not 
 the full string. How can I pass qrystr in the URL so that it 
 remains encoded and will be received with it's complete value?
 
 I could use the replace function to custom encode qrystr 
 myself, and then decode it at the receiving template, but I 
 thought the whole point of a function like URLEncodedFormat 
 was to avoid having to do that.
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241624
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Having problem with query and multiple tables.

2006-05-22 Thread WebMistress
You would have to do a left join.  Now this Is untested and it's been a long
time since I've written one of these but it's something like

 SELECT p.name, p.product_id, p.content_id, 
 p.creationdate, h.hits AS hits,
 h.clickthroughs AS clicks, s.pagetitle, s.parent, c.pagetitle 
 AS category 
FROM Products p LEFT JOIN Product_Hits h ON p.product_id = h.product_id,
ContentPages s, 
 ContentPages c 
Where p.Status = 1 AND p.content_id = s.content_id AND s.parent = 
 c.content_id ORDER BY #sortorder#


Thank you,
Katrina Chapman
Center Manager
Whittier Community Center
435-753-9008
 

 -Original Message-
 From: Michael Grove [mailto:[EMAIL PROTECTED] 
 Sent: Monday, May 22, 2006 12:15 PM
 To: CF-Talk
 Subject: Having problem with query and multiple tables.
 
  I have a query calling on data in multiple tables. The 
 database is MS Access. Here is the query that I am using
 
 SELECTp.name, p.product_id, p.content_id, 
 p.creationdate, h.hits AS hits,
 h.clickthroughs AS clicks, s.pagetitle, s.parent, c.pagetitle 
 AS category FROM Products p, Product_Hits h, ContentPages s, 
 ContentPages c Where p.Status = 1 AND p.product_id = 
 h.product_id AND p.content_id = s.content_id AND s.parent = 
 c.content_id ORDER BY #sortorder#
 
 All the data is returned fine accept that The HITS and CLICKS 
 if there is not HIT available for a particular product in the 
 PRODUCT_HITS table, then that product does not show up. I 
 could break this into tow separate queries except that I need 
 to be able to dynamically change the sort order.
 
 Basically I need to list all of the products even if there 
 has been not HIT record created for it. Is this possible 
 using a single query?
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241153
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54