I have some code in a MYSQL database, as follows. when i execute this php code in its own file, it creates 1 record, as ment to.
<?
$query1 = "INSERT INTO newsevents VALUES (
'',
'maker',
'',
'',
'',
''
)";
mysql_query($query1);
?>
However when this code is called from a MYSQL record, and using the following eval() command to process it, i end up with 2 records being created.
<?
$code=$pageconfig['contentmiddle'];
$code=str_replace('<'.'?php','<'.'?',$code);
$code='?'.'>'.trim($code).'<'.'?';
eval($code);
?>
any ideas?