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

 basic php / sql format error

Print topic Send  topic

Author Message
ajmartin

Posts: 11
Posted: 12/08/2004, 2:42 PM

I know this is simple....

$this->SQL = "SELECT * " .
"FROM Users WHERE user_id = ". $HTTP_SESSION_VARS['UserID'];

not doing what I want... sql statement ends at "user_id="


can someone help with my formatting here...

cheers
Adam
View profile  Send private message
ajmartin

Posts: 11
Posted: 12/08/2004, 2:59 PM

...again I find the solution

$this->SQL = "SELECT * " .
"FROM Users WHERE user_id = ". CCGetSession("UserID");
View profile  Send private message
Last Hero
Posted: 12/09/2004, 9:06 AM

In first case you MUST write before:
global $HTTP_SESSION_VARS;

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.