If the query has no result, $link will be null and that is the invalid argument. If you initialize
$link = array ();
before the query, this will solve that problem.
Reputation Points: 550
Solved Threads: 731
Bite my shiny metal ass!
Offline 4,177 posts
since Jul 2006