Your mysql_fetch_array() doesn't produce a valid result (like the error message states) because your query doesn't work. One possible error could be the trailing comma after ASC, which will certainly cause an error.
Beware of relying on PHPMyAdmin as a test of your queries. PHPMyAdmin has lots of tidying procedures in place which means that it accepts all sorts of garbage and tidies it up into a valid query. This is very useful for quick database maintentance. MySQL server, however, is not so forgiving.
Secondly, the citation of the connection procedure ($conn) is placed wrongly. It should be placed in the mysql_fetch_array() statement, thus:
$row=mysql_fetch_array($result, $conn)
Best o luck
Norm 😃