Monday, April 26, 2010

How to write to_char() function in cakephp

Hi all,
I am new to cakephp i have problem like this please help me out sir

$currentday = date("w");

$rsStoreTime = pg_exec($conn, "SELECT
intdaynumber,to_char(dtmopeningtime,'HH24:mi') AS
dtmopeningtime,to_char(dtmclosingtime,'HH24:mi') AS dtmclosingtime
FROM tblstorehours where intdaynumber = '$currentday'");

above query how can i convert into cakephp

and

$intCnt = pg_numrows($rsStoreTime);


this query also how can i convert into cakephp .....

Sir any one please help me out sir, thanks in advance

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate