latesttut.php
<?php include('dbconnect.php'); $query = mysql_query("SELECT * tutorials ORDER BY id DESC WHERE validate='1' LIMIT 10"); while ($latest = mysql_fetch_array($query)) { $link = $latest['tutorial']; $title = $latest['title']; echo("<a href='$link'>$title</a>"); } ?>That's the code I've got (without the HTML)
And I keep getting this error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/djl2k/public_html/latesttut.php on line 12
Line 12 is the mysql_fetch_array() comes in.