On Tue, 3 Jun 2003, Jamie Neil wrote: > While testing my (hopefully soon to go live) site, I've just noticed a > serious problem relating to my use of the query tag with a shared database. [snip] > But when my promo component does: > > [query arrayref=main > sql=" > SELECT sku,timed_promotion,start_date,finish_date > FROM merchandising > WHERE featured = '[control promo_type featured]' > "] > > it returns data from the merchandising table of the main site! You have to tell Interchange which table's DSN you want to use in the query tag, otherwise it will use the DSN for your first ProductFiles table. It doesn't parse your query, so it otherwise has no way to know what you want. Try: [query arrayref=main table=merchandising sql="..." ] Jon _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.