You're bumping two strings together without an operator, which is bad code.
Illegal:
echo 'Client Details for ' . $client_name"<br />\n";
Legal:
echo 'Client Details for ' . $client_name . "<br />\n";
Also legal:
echo "Client Details for $client_name<br />\n";
PHP will expand variable references embedded in double-quoted strings.