Re: [PHP] PHP and CakePHP: How to use the $html-selectTag()

2006-04-11 Thread Miles Thompson
At 11:54 PM 4/10/2006, Pham Huu Le Quoc Phuc wrote: Hi everybody! I'm a newbie. My question maybe very funny. But please answer to me if you have any ideas. I use $html-selectTag(), I don't know how to use OnChange. When User choose a item on SelectTag, I want Browser to redirect another page

[PHP] PHP and CakePHP: How to use the $html-selectTag()

2006-04-10 Thread Pham Huu Le Quoc Phuc
Hi everybody! I'm a newbie. My question maybe very funny. But please answer to me if you have any ideas. I use $html-selectTag(), I don't know how to use OnChange. When User choose a item on SelectTag, I want Browser to redirect another page and get current value. Thank so much! -- PHP General

[PHP] PHP and CakePHP

2006-03-30 Thread Pham Huu Le Quoc Phuc
I use CakePHP The folowing code do not execute: td align=center ?=(!empty($info['Employee']['dob'])) ? $datetime-time2str($info['Employee']['dob']) : ? /td -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and CakePHP

2006-03-30 Thread chris smith
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. --

Re: [PHP] PHP and CakePHP

2006-03-30 Thread Pham Huu Le Quoc Phuc
/ . $info['Employee']['id']) ? /td /tr ?php endforeach; ? - Original Message - From: chris smith [EMAIL PROTECTED] To: Pham Huu Le Quoc Phuc [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Thursday, March 30, 2006 5:20 PM Subject: Re: [PHP] PHP and CakePHP

Re: [PHP] PHP and CakePHP

2006-03-30 Thread Chris
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

Re: [PHP] PHP and CakePHP

2006-03-30 Thread Mattias Thorslund
Pham Huu Le Quoc Phuc wrote: I use CakePHP The folowing code do not execute: td align=center ?=(!empty($info['Employee']['dob'])) ? $datetime-time2str($info['Employee']['dob']) : ? /td Are you sure that $info['Employee']['dob'] isn't actually empty? To see if that's the case,