Hi all, I've been playing around with this script I have for a video site and am running into this error, could someone please explain in newbie talk how to fix this error... Warning: extract() [function.extract]: First argument should be an array in /home/blahblah/public_html/scripts/thisfolder/my_media.php on line 17 Here is the code... for($i = 0; $i < $numrow; $i++) { $row = mysql_fetch_array($result); (this is line 17) extract($row); $titlenew = htmlentities ($row['title']); if($i % $columns == 0) { echo "<tr>\n"; } I've searched google for solutions and read somewhere that extract is not the right syntax or something...(it's all greek to me) and I do have content in the database. Any help would be greatly appreciated with some green points
There must be something wrong with the database. Either you aren't connected or the query is incorrect before the for loop put echo '<div>'.mysql_error().'</div>'; and paste the error here It may also be worth checking that your database name is the correct one, that all the column and table names are the same as the ones in the query
I think that $result is returning nothing may be "no rows matching" or sql error in query formation. My first guess.