CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 syntax for expressions in where clause

Print topic Send  topic

Author Message
subgang

Posts: 9
Posted: 02/29/2008, 9:40 AM

I have a search field that allows the user to choose a number of days from a list, and filter results to show records from that number of days back.

How can I get this to work?

DATE_SUB(CURDATE(),INTERVAL {s_last_order_date} DAY)

If I use the above as an expression in the WHERE filter, it becomes this in the Codecharge code:

$this->DataSource->Parameters["urlDATE_SUB(CURDATE(),INTERVAL {s_last_order_date} DAY)"] = CCGetFromGet("DATE_SUB(CURDATE(),INTERVAL {s_last_order_date} DAY)", NULL);

which, of course, makes no sense...
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.