I have just tried many examples that are shown with no luck at all. I am given no error messages with E_ALL yet nothing is displayed. The funny part is it get's the data required but eval seems not to work because it won't display the data.
function blocks($x,$block) {
sql();
ip();
global $ip;
mysql_select_db("site") or die("Could not select database");
$query = "SELECT info, name FROM blocks WHERE name='$block'";
$result = mysql_query($query) or die("Query failed : " . mysql_error());
$line = mysql_fetch_array($result);
if($x==info) {
$display = str_replace('<ip>', $ip, $line['0']);
$display = addslashes($display);
$display = eval("?".chr(62).$display.chr(60)."?");
//$display = str_replace('<?php', '\";', $display);
//$display = str_replace('?>', 'echo \"', $display);
echo $display;
}else
if($x==title) {
echo ucwords(strtolower($line['1']));
}
}