MORE INFO > Eval()??? A variables contents?
| From: | Christopher Raymond | Date: | Fri, 09 Nov 2001 20:27:34 +0000 |
| Subject: | MORE INFO > Eval()??? A variables contents? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74054@lists.php.net to get a copy of this message | ||
Okay there are two files involved here. First is my index.php file:
$params = array('class' => 'text10', 'content' =>
'Query_Database( $category
)');
switch ( $mode ) {
case "list":
Make_TR( $params ); // This is executing the included function.
break;
default:
Display_Default();
}
Then there's the function that's located elsewhere in an include file:
<?PHP
function Make_TR ( $params ) {
( $params["class"] ) ? $class = "class=" . $params["class"] : $class
= "";
( $params["content"] ) ? $content = $params["content"] : $content =
"";
?>
<tr>
<td width="535" <?PHP echo $class;?>>
<div align="left">
<br>
<?PHP echo $content;?><br>
<br>
</div>
</td>
</tr>
<?PHP
}
?>
Christopher <-- Still has no solution :-(