Jump to content

variable


techker

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

Archived

This topic is now archived and is closed to further replies.

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