close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Set session

Thread began 3/29/2010 5:29 pm by nickj | Last modified 3/30/2010 6:26 am by nickj | 1372 views | 4 replies

nickj

Thanks for your quick response. The "$_SESSION['WADA_Insert_tblVendors']" appears in the detail page of the WDA set, it appears as a session variable but is not able to filter a record-set.

On the detail page I need to use a look-up table which, depending on the date will give a price. The query below should return a result only if the created date is before '2010-03-30 23:56:16! It returns a results for records later than the 30th.


I Also tried to edit the record-set but the filtering on "dateCreated". It did not work, it returned a result even for records with a date later than tblVendors.dateCreated = '2010-03-30 23:56:16'. In SQL this works but not on the page. WADA is doing something else altogether.

"SELECT label.descr_lbl AS electric
, vendorType.descr_lbl AS vend_type
, non_pro.descr_lbl AS Non_Profit
, vendorType.pre30_ven AS Pre30
, label.value_lbl AS Elec_qty
, tblVendors.*
FROM (((tblVendors
LEFT JOIN label AS non_pro ON non_pro.value_lbl=tblVendors.nonProfit)
LEFT JOIN vendorType ON vendorType.value_ven=tblVendors.vendorType)
LEFT JOIN label ON label.value_lbl=tblVendors.electric_ven)
WHERE label.group_lbl=4
AND non_pro.group_lbl=4
AND vendorType.group_ven=1
AND tblVendors.dateCreated = '2010-03-30 23:56:16'
AND tblVendors.ID = %s OR ( -1= %s AND ID= %s)",

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...