Tuesday, June 5, 2012

Re: Question

You probably are looking for something like this.

<h3>Employee</h3>
<table>
<tr>
<th>Name</th>
<th>Age</th>
<th>Hired</th>
</tr>
<?php foreach($data as $profile): ?>
<tr>
<td><h1><?php echo sprintf("%s %s %s",
$profile]['Profile']['fname'], $profile['Profile']['mname'],
$profile['Profile']['lname']);?></h1></td>
<td><p><?php echo $profile['Profile']['age']?></p></td>
<td><p><?php echo $profile['Profile']['date_hired']?></p></td>
</tr>
<?php endforeach; ?>
</table>

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

No comments: