Posted by James McIninch on 09/19/06 11:41
Certainly.
<?php for ($i=0; $i<100; ++$i) { ?>
value of $i is <i><?=$i?></i>.
<?php } ?>
Advo wrote:
> I'm redoing some ASP pages into php, asp pages have things like:
>
> A loop if something then
>
> //show some html code
>
> another loop, if something
>
> //show some more code.
>
> Can this be done in php?
>
> so that i could do:
>
> <?php
> If $_SESSION['logon'] == "true" Then {
> ?>
> <table border="0" cellpadding="0" cellspacing="0" width="100%" > ...
>
> and so forth?
>
> Cheers
[Back to original message]
|