Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What's wrong here? 1

Status
Not open for further replies.

.$_SESSION['MM_Username']"";

escape it:

$query_rs_username = "SELECT employees.name FROM employees WHERE employees.username = ".$_SESSION['MM_Username']\"";

 
again, to note it good:
$query_rs_username = "SELECT employees.name FROM employees WHERE employees.username = ".$_SESSION['MM_Username'][COLOR=red yellow] \" [/color]";
 
again, to note it good:

$query_rs_username = "SELECT employees.name FROM employees WHERE employees.username =[COLOR=red yellow] ' ".$_SESSION['MM_Username'] ."'";[/color]
 
there is also a concatenation . missing after your $_SESSION[] variable

Code:
$query_rs_username = "SELECT employees.name FROM employees WHERE employees.username = \"" . $_SESSION['MM_Username'] . "\"";

That should work.
 
Sorry Chacalinc, we must've been viewing it at the same time...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top