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

 Session id

Print topic Send  topic

Author Message
Ron Borkent
Posted: 01/11/2002, 4:17 AM

When i try to use the UserId variable with dlookup I get the following error:

call to undefined funtion Session(). The dlookup command is as follows:

$fldnews_by=dlookup("fzlogin","fz_naam","time=" & Session("UserID")) ;
I use timestamp in mysql as the primary key in the login table.
Nicole
Posted: 01/11/2002, 4:43 AM

Ron,
PHP code should be:
$fldnews_by=dlookup("fzlogin","fz_naam","time=" .ToSQL(get_session("UserID"), "Text"));
Ron borkent
Posted: 01/11/2002, 4:56 AM

Nicole, you are a lifesaver. Thnx

Ron
kenlyle
Posted: 02/26/2002, 8:18 AM

function names in PHP are case sensitive, right?

My common.php has a function called tosql...

What is the "Text" argument? Does that mean that time is a CHAR or VARCHAR
field?

I'm having a lot of trouble with get_session, so I need to understand this...

Thanks.

   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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