php 5.4 question

Recently my webhost upgraded us from 5.3 to 5.4 and I had a ton of errors on my site. I have been able to fix all of them so far except for 1. Error:

Strict Standards: Resource ID#108 used as offset, casting to integer (108) in blah on line 357

Line 357:

while($this->rowset[$query_id] = @mysql_fetch_array($query_id)){

Anyone have any idea what needs fixed? I have a feeling mysql_fetch_array is not working right in .54 now and have tried mysqli_fetch_array but that doesn’t fix the problem.

Your var $query_id is the result of mysql_query(), it’s an object and you can’t associate to an array.

Sponsor our Newsletter | Privacy Policy | Terms of Service