Re: Loop inside a table
| From: | Chris Shiflett | Date: | Mon, 20 Jan 2003 18:51:17 +0000 |
| Subject: | Re: Loop inside a table | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132279@lists.php.net to get a copy of this message | ||
--- Cesar Aracena <icaam@icaam.com.ar> wrote:
> $message = "
>
> <HTML>
> <HEAD>
> <TITLE>title goes here</TITLE>
> </HEAD>
> <BODY>
> ".
> for ($x = 0; $x < $num_rows; $x++)
> {
> //several lines made dynamically
> }
> .."
> </BODY>
> </HTML>;
Try something like this instead, if you want all of your
HTML to be in the $message variable:
$message = "<html>\n<head>\n";
$message .= "\t<title>title goes here</title>\n";
$message .= "</head>\n<body>\n";
for ($x = 0; $x < $num_rows; $x++)
{
$message .= "whatever you want to add\n";
}
$message .= "</body>\n</html>";
Chris