On Fri, 2001-12-14 at 13:37, Tony Arnold wrote:
Hi
> function start($times)
> {
> for...loop starts here...
> { <-- notice only one bracket.
> }
I guess you're only going to get parsing errors this way.
maybe this could work (if i'm guessing what you need):
function start() {
ob_start();
}
function end($number_of_times) {
$html=ob_get_contents();
ob_end_clean();
for ($i=1; $i < $number_of_times) {
echo $html;
}
}
<?php start(); ?>
html_come_here
<?php end(10); ?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]