CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Whats wrong with this line?

Print topic Send  topic

Author Message
Ezra
Posted: 07/30/2002, 10:45 AM

This Before insert event:

$fldclient_id = dlookup("login","client_id","login_id=" . get_session("UserID"));

produces this:

Database error: Invalid SQL: SELECT client_id FROM login WHERE login_id=
MySQL Error: 1064 (You have an error in your SQL syntax near '' at line 1)
Session halted.

Does anybody has an ideia whats wrong?

Thanks :)
folkerts
Posted: 07/30/2002, 5:20 PM

hi, i think what your doing is correct syntax. but the get_session("UserID") does not give anything back to you. You should check your session vars if it is set. For instance like this.

print_r($HTTP_SESSION_VARS);
die;

hope it helps.
Nicole
Posted: 08/01/2002, 5:43 AM

Ezra,
most probably the session variable is empty. Try to print it before dlookup() function is executed.

   


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.