CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Parse Error

Print topic Send  topic

Author Message
Tony Tomov
Posted: 01/07/2002, 6:16 AM

When using a custom SQL (grid ) like:

SELECT table.*, table1.* FROM table,table1
WHERE ..... table.field1 = ".get_session("MySesID").";

I recieve the following Error from CC:
ERROR: parse error near "MySesID",

but when the page is generated
(I have first write the select statment from tables - to obtain the fields, and the where clause is written after that)

all goes OK

I use PHP with templates and PostgreSQL.

Tony
Tony Tomov
Posted: 01/07/2002, 6:34 AM

The solution is to write in Open event the following code:
$sWhere = $sWhere ." AND table.field1 = ".get_session("MySesID");

Regards
Tony

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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