El problema es que en esa linea pasas de PHP a HTML sin cerrar el tag:
Código PHP:
if($b == 3)
<td><img src="kami.png"></td>
else
<td>lalalala</td>
Debería quedar algo asi:
Código PHP:
<?php
$col = $_GET["columnas"];
$fil = $_GET["filas"];
$a = 0;
$b = 0;
?>
<table>
<?
while ($a < $col){
$a++
?>
<tr>
<?php
while ($b < $fil){
$b++
if($b == 3)
?><td><img src="kami.png" /></td><?
else
?><td>lalalala</td><?
}
?>
</tr>
<?php
$b = 0;
}
?>
</table>
Aparte fijate que el tag de cierre de html dice </htmla>...