In my project, I have two tables. They are login and employee table.
Employee table contains name, NIC etc. and login table has NIC, password.
NIC is username of the system. I wanted to know how to retrieve logger name from the session. This is the code I have added to the system, but it shows error as systax error. Could anyone help me to solve this?
<?php
$sql = 'SELECT tbl_employee.Fname
FROM tbl_login , tbl_employee
WHERE tbl_employee.NIC = tbl_login .$_SESSION['username'] ';
?>