I did got this working by putting an ( if statment in but it will not work now so I took it out ) and its still giving me the same problem as I first had. error:-
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in ---posts.inc.php on line 41
Silkenthread wrote:I have tried but still no good I will recheck the code against the tutorials and see what the problem is. Thanks for your help though.
if you added
echo mysql_error();
after this line
$posts = mysql_query($sql);
you should have got a description of the problem ...