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.
|
|
|
|