Jump to content

Recommended Posts

see my client is using login manager.in a page there is the includes.

 

so all the variable are alredy done.

 

like this $check =$CheckSecurity->page_check($USERNAME, $PASSWORD,$dbhost,$dbusername,$dbpass,$dbname);

 

so when i do $check['name'] it gives me the client login name.

 

now i need to create a variable that will include the client login name.

 

$documents=Scheck['name']

Link to comment
https://forums.phpfreaks.com/topic/137935-variable/#findComment-720947
Share on other sites

so when i do $check['name'] it gives me the client login name.

 

now i need to create a variable that will include the client login name.

 

According to the information you just provided $check['name'] holds your users login name. So what exactly is the problem?

 

Again I say, you need to be more descriptive.

Link to comment
https://forums.phpfreaks.com/topic/137935-variable/#findComment-720951
Share on other sites

ok..if i can't find the original $check var..then i want to use it.Can i intergrate it then?

 

$check['name']

 

in

another variable that i can make?

 

and in a query ?

 

$fileSQL=" SELECT *

FROM `trainers_clients`

WHERE `trainer` = $check['name'] ////here

LIMIT 0 , 30 ";

$fileLIST=mysql_query($fileSQL);

 

Link to comment
https://forums.phpfreaks.com/topic/137935-variable/#findComment-720956
Share on other sites

All you need do is concatinate it into your query. eg;

 

$sql = "SELECT * FROM foo WHERE username = '" . $check['name'] ."'";

 

Or imbed it directly within a double quoted string....

 

$sql = "SELECT * FROM foo WHERE username = '{$check['name']}'";

 

thxclose but no cigar..  " . $check['name'] ." i forgot the"'"

 

what is this called so i can can study on this?

 

 

Link to comment
https://forums.phpfreaks.com/topic/137935-variable/#findComment-720974
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.