OH. It is a grammar error - it seems to me:
seek 'while ($item = $mysql_fetch_array($result)) {'
and change it to 'while ($item = mysql_fetch_array($result)) {'

Theese strings are differring with '$' symbol