Old thread but I figured I’d post my fix in case someone else finds it.
I was getting the:
/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php(110) : eval()’d code on line 3
error
with the code:
[php]
$result = mysql_query("SELECT Id,Name FROM recipes");
if (!$result) {
echo 'Could not run query: ' . mysql_error();
exit;
}
$row = mysql_fetch_row($result);
echo $row[0]; // 42
echo $row[1]; // the email value
[/php]
I replaced the code with:
[php]
echo 'hello world';
[/php]
it echoed properly and when I replaced hello world with the original code it worked.