This should not be an issue... but it is. I have spent the better part of 2 hours trying to figure out why I am getting an eval code parse error. This snippet is being called from a file (all HTML except this) and eval()ed. The error is on line 9 which is the mysql_query line.
Called from:PHP Code:<?php
$sql = @mysql_query("SELECT *
FROM articles
WHERE featured = '1'
LIMIT 0 , 1");
//echo mysql_num_rows($getSnippet);
if(!$sql)
{
echo 'No articles available';
}
else
{
while($snippet = mysql_fetch_array($sql))
{
?>
<h3><?php echo $snippet['title']; ?></h3>
<?php echo substr($snippet['article'],150);
}
}
?>
Make any sense of it?PHP Code:$pagecontent = stripslashes(makehtml(nl2br($rowContent['content'])));
echo '<p>';
eval('?>'.$pagecontent);
echo'</p>';









Bookmarks