by the following function i am trying to get data from database sending $Uic as parameter but can not please help.
function ret_rec($Uic)
{
global $conn,$tname,$feedback,$x;
query("BEGIN WORK");
$res=query("SELECT emplooyee_name FROM employee where employee_ic_number=$Uic");
print pg_result($res,0,0);
return true;
}
error encountered :
Warning: Supplied argument is not a valid PostgreSQL
please help
thank you