please help... im having trouble with a very simple line of code.
Parse error: syntax error, unexpected T_IF on line 3
PHP Code:
<?php
$s=$rows['stars']
if ($s==1)
echo "<image src='images/rate1.gif' height='27' width='58' align='right'>"
elseif ($s==2)
echo "<image src='images/rate2.gif' height='27' width='58' align='right'>"
else
echo "<image src='images/rate0.gif' height='27' width='58' align='right'>"
?>
i dont see anything wrong and im at my wits end... please help!