PHP "if" Error

LadyYepperz

24.***.***.***
629 days ago

PHP "if" Error

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 ive no more hair to pull out... please help!

LadyYepperz

24.***.***.***
628 days ago
Never mind someone found my errorS
I left the semi-colons off. :rolleyes: