Re: PHP and CakePHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux