It is a hassle (-: I'm java user myself, as I think, Old Pedant too. So, no PHP here.
I would suggest to do, split problem to smaller chunks, and see on which line it dies.: ....
But again, I'm mostly guessing PHP:
$tmpStr = '<td><a href="delete_job.php?id=';
$tmpStr = $tmpStr . $row['ID'];
$tmpStr = $tmpStr . '"';
and if it does not die here somewhere , it will on echo command,
then you will have $tmpStr, to see what is in it (catch it on server side....)