suggestions to comment :) ) to make it perfect.
On Jan 31, 12:00 pm, brian <bally.z...@gmail.com> wrote:
> To add to Xoubaman's response, it's best if you specify *what* errors
> you're getting if you want help.
>
> btw, if anyone's confused, "bucle" means "loop" (or "circuit") in french ;-)
>
> On Sat, Jan 31, 2009 at 11:13 AM, Xoubaman <xouba...@gmail.com> wrote:
>
> > echo("<tr><td width='225px'>") only happens if $j==4, but echo("</
> > td></tr>"); happens in every first bucle iterations, so you are
> > closing lots os rows and columns.
>
> > On Jan 31, 3:56 pm, thankyou <gregbo...@gmail.com> wrote:
> >> ** im a beginner :)
>
> >> I'm trying to get this to make 20 rows of 5 colums each and I'm
> >> continuing to get errors. Any idea what's wrong? Here's the code:
>
> >> <table width='100%' border='0'>
> >> <tr>
> >> <td width='100%' align='center'>
> >> <table>
> >> <?php
> >> $text = ' area code';
> >> for($i = 0; $i < 10; $i++)
> >> {
> >> for($j = 0; $j < 10; $j++)
> >> {
>
> >> if($j == 4)
> >> {
> >> echo("<tr><td width='225px'>");
> >> }
> >> echo($html->link($firstNumber . $i. $j . $text , "/AreaCodes/
> >> detail/". $firstNumber . $i. $j, array('class'=>'area_code_link')));
> >> echo(" ");
> >> }
> >> echo("</td></tr>");
> >> }
>
> >> ?>
> >> </table>
> >> </td>
> >> </tr>
> >> </table>
>
> >> <?
> >> }
> >> ?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment