note 50391 added to function.eval
| From: | php-general at lists dot php dot net | Date: | Sat, 26 Feb 2005 19:49:01 +0000 |
| Subject: | note 50391 added to function.eval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85588@lists.php.net to get a copy of this message | ||
<?php
$connect = mysql_connect("host","user","password");
mysql_select_db("db");
$query = mysql_query("SELECT * FROM sider WHERE id = '$_GET[id]'");
while ($row = mysql_fetch_array($query)){
$indhold = $row['indhold'];
eval("\$indhold = \"$indhold\";");
}
?>
I have this code, but it dosen't work. It says: Parse error: parse error in visside.php(9) :
eval()'d code on line 3.
And I have tried a lot of other tinh to, which didn't worked either.. Anybody know what is
wrong?
Please help me...
----
Manual Page -- http://www.php.net/manual/en/function.eval.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50391
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50391&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50391&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50391&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50391&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50391&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50391&report=yes
Search -- http://master.php.net/manage/user-notes.php