I am working out of a book and I'm trying to run this code.
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);
echo "
. "'>" . $row['subject'] .
"
?";
echo "In
."'>" . $row['cat'] .
"
- posted on " . date("D js F Y " , strtotime($row['dateposted'])) .
"";
echo "
";
echo nl2br($row['body']);
echo " ";
When I do I get this error
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
Can anyone help me out here. Also thanks in advance.