Ok this is really pissing me off. I have a script to display records
[PHP]<?
mysql_connect("localhost","","");
mysql_select_db("");
$result = mysql_query("SELECT * from 'tutorials' limit 6 ORDER by id WHERE 'check' = '2' ");
while($r=mysql_fetch_array($result))
{
$title=$r["title"];
$url=$r["url"];
$img=$r["img"];
$date_add=$r["date_add"];
$cat=$r["cat"];
$des=$r["des"];
echo 'blah';
}
?>[/PHP]
Now i don't see no problem with that and i keep getting this error
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\easyphp1-7\www\urftutorials\db\index_db.php on line 8
This might be a n00b question but i can't see any thing wrong wit the code so can any of you see it? b4 you ask the MySql is fine i'm sure
Free MySpace Layouts- Coming soon
Photoshop Tutorials- Coming soon
Premium PHP Scripts- Coming soon
Haha i should really do some work so i can remove all the coming soon's
Comments
apart from that make sure that there is something in the database
The Royal Ram
Photoshop Tutorials- Coming soon
Premium PHP Scripts- Coming soon
Haha i should really do some work so i can remove all the coming soon's
The Royal Ram