Robby Russell wrote:
Russell Shaw wrote:

Hi,
I have php code embedded in html, that is read by apache.

Is nested php code allowable such as:

<?
  $phpcode="<? echo \"< some html >\" ?>";
?>
...
<html>
...
  <body>
    <? echo "$phpcode" ?>
  </body>
</html>


Not sure what you're trying to do there.

I am generating dozens of rows of a table with entries from a database. Each row has an option selector that has dozens of choices, derived from another database. So, the first php pass generates the table, then the second pass generates the choices list in each row.

You can do this:

<?php
  $phpcode = "<b>hello world!</b>\n";
?>

<html>
  <body>
    <?php echo $phpcode; ?>
  </body>
</html>

I have done that a lot.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to