I dont know what i'm doing wrong.
This is my piece of code. It runs past this to the line after the tag and gives me an error on that line.
<td>
<?
//here is my peice of code that gives problems
//it must check if the file extention finishes with swf and write out the object(Flash)
//else it must write out the image tag
$name=$row["CFILENAME"];
$img=substr($name,strlen($name)-3,3);
echo $img;
?>
<?
if ($img = "swf")
{
?>
<object classid="clsid😃27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="395" height="450">
<param name=movie value="<? echo $row["CFILENAME"];?>"><param name=quality value=high>
<embed src="<? echo $row["CFILENAME"];?>" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="395" height="450">
</embed>
</object>
<?
} else {
?>
<img src="cards/<? echo $row["CFILENAME"];?>" height="450">
</td>
</tr>
</table>
<!-- END CONTENT -->
<?
}
//here the piece of code stops
//It runs past here and gives me a error in line 149 which is after the tag
//does not make sence
?>
</td>