Re: PHP and CakePHP

From: Date: Fri, 31 Mar 2006 00:34:43 +0000
Subject: Re: PHP and CakePHP
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-232968@lists.php.net to get a copy of this message
Pham Huu Le Quoc Phuc wrote:
It doesn't show any thing while $info['Employee']['dob'] isn't empty. This is my code <?php
      $stt = 0;
      foreach($data as $info):
add this: $x = $datetime->time2str($info['Employee']['dob']); echo "dob: " . $info['Employee']['dob'] . "; x: " . $x . "<br/>"; and make sure that $datetime (whatever that is doing) is returning something. If it's not, look at that and go from there. <snip>
The folowing code do not execute: <td align="center">
    <?=(!empty($info['Employee']['dob'])) ?
$datetime->time2str($info['Employee']['dob']) : ""?> </td>
What do you mean? It doesn't show anything? Then $info['Employee']['dob'] is empty. If not, explain what you see or what happens. -- Postgresql & php tutorials http://www.designmagick.com/
-- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#232968) next »