You could do this:

<td width="192" height="307"><?php
       $var = "hi";
       print "<img src=$var.".jpg" width=\"192\" height=\"307\" />";
?></td>