echo("<td> <select name = \"subjects\" id = \"groupSubjects\">");
while($data = mysql_fetch_array($result))
{
if($ctr=0)
{
echo("<option selected> $data['subjectName'] </option>"); // it says that this is the parse error
$ctr++;
}
else
echo("<option> $data['subjectName'] </option>");
echo("</select> </td>");
im a newbie at php but i've done some codes which usually uses some data from the database and print it but it says on this code that i have a parse error and the way i look at it, it seems correct already im hoping u guys can help me on this one coz im not dat familiar with php syntax yet...thanks alot in advance