I am trying to get data from the link from this code and get an error as show below, what could be the problem with line 3 of the code?
while ($row = mysql_fetch_assoc($result))
{
echo "<a href=\"edit_employee.php?$row['employee_id_passport']\">" . $row['first_name'] ." " . $row['surname'] . "</a>";
echo "<br />";
}
The error is
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /Library/WebServer/Documents/practice/employee/view_employee.php on line 14
Remove single quotes: