CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 getting user login name

Print topic Send  topic

Author Message
Ricky
Posted: 04/15/2001, 2:02 PM

I use PHP4.
I put this in my form's before show event.

$Name = get_session("Login");

Couldn't get it to display either.
I want to put the person's login name in a field called Name.
Do I need to set these up in the input tab some way ?

Ricky



Alexey Alexapolsky
Posted: 04/16/2001, 2:28 AM

Use it like this
$Name = dlookup("name_of_your_security_table" , "login field_in_that_table"
, "id_field=".get_session("USerID"));
for bookstore example it'd loke like
dlookup("members","member_login", "member_id=".get_session("UserID"));
This function us used to get a single value from a database , 1 param is a
table , second param is
a field we fetch , and 3rd param is a condition


--
Regards,
Alexey
CodeCharge Support


Ricky <rfidlerremove@1lsn.com> wrote in message
news:9bd29v$t7l$1@mail.tankhill.com...
> I use PHP4.
> I put this in my form's before show event.
>
> $Name = get_session("Login");
>
> Couldn't get it to display either.
> I want to put the person's login name in a field called Name.
> Do I need to set these up in the input tab some way ?
>
> Ricky
>
>
>
>

Ricky
Posted: 04/17/2001, 2:50 PM

I don't think there is a dlookup function in PHP.



"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:9bedv5$7gb$1@mail.tankhill.com...
> Use it like this
> $Name = dlookup("name_of_your_security_table" , "login
field_in_that_table"
> , "id_field=".get_session("USerID"));
> for bookstore example it'd loke like
> dlookup("members","member_login", "member_id=".get_session("UserID"));
> This function us used to get a single value from a database , 1 param is a
> table , second param is
> a field we fetch , and 3rd param is a condition
>
>
> --
> Regards,
> Alexey
> CodeCharge Support
>
>
> Ricky <rfidlerremove@1lsn.com> wrote in message
>news:9bd29v$t7l$1@mail.tankhill.com...
> > I use PHP4.
> > I put this in my form's before show event.
> >
> > $Name = get_session("Login");
> >
> > Couldn't get it to display either.
> > I want to put the person's login name in a field called Name.
> > Do I need to set these up in the input tab some way ?
> >
> > Ricky
> >
> >
> >
> >
>
>

Ricky
Posted: 04/17/2001, 4:21 PM

I sorry I guess there is but it doesn't like the get_session("userid") part



"Ricky" <rfidler@1lsn.com> wrote in message
news:9bidqu$spm$1@mail.tankhill.com...
> I don't think there is a dlookup function in PHP.
>
>
>
> "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
>news:9bedv5$7gb$1@mail.tankhill.com...
> > Use it like this
> > $Name = dlookup("name_of_your_security_table" , "login
> field_in_that_table"
> > , "id_field=".get_session("USerID"));
> > for bookstore example it'd loke like
> > dlookup("members","member_login", "member_id=".get_session("UserID"));
> > This function us used to get a single value from a database , 1 param is
a
> > table , second param is
> > a field we fetch , and 3rd param is a condition
> >
> >
> > --
> > Regards,
> > Alexey
> > CodeCharge Support
> >
> >
> > Ricky <rfidlerremove@1lsn.com> wrote in message
> >news:9bd29v$t7l$1@mail.tankhill.com...
> > > I use PHP4.
> > > I put this in my form's before show event.
> > >
> > > $Name = get_session("Login");
> > >
> > > Couldn't get it to display either.
> > > I want to put the person's login name in a field called Name.
> > > Do I need to set these up in the input tab some way ?
> > >
> > > Ricky
> > >
> > >
> > >
> > >
> >
> >
>
>

Alexey Alexapolsky
Posted: 04/18/2001, 8:02 AM

1) dlookup() function is defined in common.php file ,
it's generated in the same dir with other CC generated files.
2) > I sorry I guess there is but it doesn't like the get_session("userid")
part
What do you mean by "doesn't like" ? Try get_session("UserID") - case
sensetive



--
Regards,
Alexey
CodeCharge Support


Ricky <rfidler@1lsn.com> wrote in message
news:9bij6a$6kl$1@mail.tankhill.com...
> I sorry I guess there is but it doesn't like the get_session("userid")
part
>
>
>
> "Ricky" <rfidler@1lsn.com> wrote in message
>news:9bidqu$spm$1@mail.tankhill.com...
> > I don't think there is a dlookup function in PHP.
> >
> >
> >
> > "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
> >news:9bedv5$7gb$1@mail.tankhill.com...
> > > Use it like this
> > > $Name = dlookup("name_of_your_security_table" , "login
> > field_in_that_table"
> > > , "id_field=".get_session("USerID"));
> > > for bookstore example it'd loke like
> > > dlookup("members","member_login", "member_id=".get_session("UserID"));
> > > This function us used to get a single value from a database , 1 param
is
> a
> > > table , second param is
> > > a field we fetch , and 3rd param is a condition
> > >
> > >
> > > --
> > > Regards,
> > > Alexey
> > > CodeCharge Support
> > >
> > >
> > > Ricky <rfidlerremove@1lsn.com> wrote in message
> > >news:9bd29v$t7l$1@mail.tankhill.com...
> > > > I use PHP4.
> > > > I put this in my form's before show event.
> > > >
> > > > $Name = get_session("Login");
> > > >
> > > > Couldn't get it to display either.
> > > > I want to put the person's login name in a field called Name.
> > > > Do I need to set these up in the input tab some way ?
> > > >
> > > > Ricky
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


   


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.