Unexpected T_WHILE error [closed]-Collection of common programming errors

Can anybody point out what I am doing wrong in my code below? I’m getting an “UNEXPECTED T_WHILE” error.

echo '
Events Category
‘, while ($row = mysql_fetch_assoc($queryresult)) { $title = $row[‘eventTitle’]; echo $title; }, ‘ ‘, while ($row = mysql_fetch_assoc($queryresult)) { $category = $row[‘eventTitle’]; echo $category; }, ‘

';