This:
<td><?php echo $title1 ?> </td>
Could be written as simply this:
<td>$title1 </td>
You've already started an echo statement and not closed it, so you don't need to do the "<?php echo" thing again.
This one:
<td><a href="<?php echo $name1 ?>">NAME</a> </td>
Is a bit more tricky, because PHP will see the double quotes in the href and end the string. Read up on how strings work in PHP:
http://www.php.net/manual/en/language.types.string.php