mike karthauser gave the correct solution.

The for loop should be built to handle any numbers of rows, as it
already does, and then you should do conditional checks within the
loop to know if there are 1, 2 or 3 values in each row, presumably
echoing some alternative content/code for empty values, and then
closing the wrapping the loop in a div.

You may want to try the shorthand if else statement as follows:
<?php echo isset($skill[0]) ? $skill[0] : 'empty'; ?>

HTH

Paul.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to