note 100524 rejected from function.eval by danbrown
| From: | danbrown@php.net | Date: | Thu, 21 Oct 2010 13:22:45 +0000 |
| Subject: | note 100524 rejected from function.eval by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173342@lists.php.net to get a copy of this message | ||
Note Submitter: Jord at w3bz dot nl
----
How come this doesn't work?
<?php
//con has been made earlier
$sql = "SELECT * FROM sidebar WHERE id = '1' ORDER BY id DESC limit 1";
//HIER
$query = mysql_query($sql) or die("".mysql_error());
while( $show = mysql_fetch_object( $query ) ) {
eval ("$show->content");
}?>