Re: php+html mixup in displaying multidimensional array in html tables [message #176843 is a reply to message #176840] |
Sat, 28 January 2012 12:03 |
Luuk
Messages: 329 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 28-01-2012 12:24, John wrote:
> Hello,
>
> I am new to this problem and shall be very grateful for any hint on how
> to a´void an unreadable code-salad, when trying to display a
> bidimensional array (thus with two indexes) on a html table.
> I refer to the continuous shifting between <?php and <html> every two
> lines.
you don't need continuous shifting .......
<?php $x=1; ?>Some <strong>html</strong> here<?php $x=$x+1 ?>
Will have the same effect as:
<?php
$x=1;
echo "Some <stong>html</strong> here";
$x=$x+1;
?>
>
> Is there a method which is 'quick an easy' to do the job ?
>
This will be a nice challenge to get to know PHP..... ;)
--
Luuk
|
|
|