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

Reply via email to