holyboy
|
| Posted: 07/24/2001, 4:30 PM |
|
i've read many about UserID variable, but i still don't know how to
recall it on page.
true, i'm not familiar with programmming
pls somebody explain , point by point:
i want to put logged user name on page.
how?
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 07/25/2001, 2:48 AM |
|
what language do you use ?
with or without templates ?
--
Alex
CC
holyboy <holyboy@thewatercooler.com> wrote in message
news:9jl0er$g5e$1@news.codecharge.com...
> i've read many about UserID variable, but i still don't know how to
> recall it on page.
> true, i'm not familiar with programmming
>
> pls somebody explain , point by point:
> i want to put logged user name on page.
> how?
>
|
|
|
 |
holyboy
|
| Posted: 07/25/2001, 11:44 AM |
|
php4 with templates
> what language do you use ?
> with or without templates ?
>
> --
> Alex
> CC
>
>
> holyboy <holyboy@thewatercooler.com> wrote in message
>news:9jl0er$g5e$1@news.codecharge.com...
> > i've read many about UserID variable, but i still don't know how to
> > recall it on page.
> > true, i'm not familiar with programmming
> >
> > pls somebody explain , point by point:
> > i want to put logged user name on page.
> > how?
> >
>
>
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 07/26/2001, 2:37 AM |
|
In Form/Header add the following : You're {uname}
Add this code to Page/Open event
==================
$uname = dlookup("members","member_nam
e","member_id=".get_session("UserID"));
$tpl_>set_var("uname",$uname);
==================
dlookup is a cc function for quick look into
a database , 1st param is table , 2n is
a field we fetch , 3rd is a condition
--
Alex
CC
holyboy <holyboy@thewatercooler.com> wrote in message
news:9jn41k$mii$1@news.codecharge.com...
> php4 with templates
>
> > what language do you use ?
> > with or without templates ?
> >
> > --
> > Alex
> > CC
> >
> >
> > holyboy <holyboy@thewatercooler.com> wrote in message
> >news:9jl0er$g5e$1@news.codecharge.com...
> > > i've read many about UserID variable, but i still don't know how to
> > > recall it on page.
> > > true, i'm not familiar with programmming
> > >
> > > pls somebody explain , point by point:
> > > i want to put logged user name on page.
> > > how?
> > >
> >
> >
>
|
|
|
 |
holyboy
|
| Posted: 07/30/2001, 3:24 AM |
|
well, it's not working
when i try to access secured page (level1) with this event added, login
page doesn't appear, but the following text is displayed:
==============================
Database error: Invalid SQL: SELECT user FROM users WHERE id=
MySQL Error: 1064 (You have an error in your SQL syntax near '' at line
1)
Session halted.
==============================
my table name: "users"
four fields: "id" (INT number, 11), "user" (TINYTEXT, contain name of
the user), "login" (TINYTEXT), "pass"
btw.
if i try to access level3 page as level 1 user, after login screen i
receive the following:
==============================
Database error: Invalid SQL: SELECT user FROM users WHERE id=user1
MySQL Error: 1054 (Unknown column 'user1' in 'where clause')
Session halted.
==============================
where "user1" is login entered
> In Form/Header add the following : You're {uname}
>
> Add this code to Page/Open event
> ==================
> $uname = dlookup("members","member_nam
> e","member_id=".get_session("UserID"));
> $tpl_>set_var("uname",$uname);
> ==================
>
> dlookup is a cc function for quick look into
> a database , 1st param is table , 2n is
> a field we fetch , 3rd is a condition
>
>
>
> --
> Alex
> CC
>
> holyboy <holyboy@thewatercooler.com> wrote in message
>news:9jn41k$mii$1@news.codecharge.com...
> > php4 with templates
> >
> > > what language do you use ?
> > > with or without templates ?
> > >
> > > --
> > > Alex
> > > CC
> > >
> > >
> > > holyboy <holyboy@thewatercooler.com> wrote in message
> > >news:9jl0er$g5e$1@news.codecharge.com...
> > > > i've read many about UserID variable, but i still don't know how
to
> > > > recall it on page.
> > > > true, i'm not familiar with programmming
> > > >
> > > > pls somebody explain , point by point:
> > > > i want to put logged user name on page.
> > > > how?
> > > >
> > >
> > >
> >
>
>
|
|
|
 |
|