Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
inserting date
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
cake_learner  
View profile  
 More options May 30 2007, 2:49 am
From: cake_learner <shivam0...@gmail.com>
Date: Tue, 29 May 2007 23:49:09 -0700
Local: Wed, May 30 2007 2:49 am
Subject: inserting date
I am trying to insert date into database.

fieldname: dob
type: date (y:m:d)

views code:

<?php echo $html->dayOptionTag('Client/d', $value = null, $selected =
null, $selectAttr = null, $optionAttr = null, $showEmpty = true);?>
                <?php echo $html->monthOptionTag('Client/m', $value = null,
$selected = null, $selectAttr = null, $optionAttr = null, $showEmpty =
true)?>

                <?php echo $html->yearOptionTag('Client/y', $value = null, $minYear
= null, $maxYear = null, $selected = null, $selectAttr = null,
$optionAttr = null, $showEmpty = true)?>

In the controller i have the code,

$this->Client->save($this->data);

1.  How do i save date, month, year in one field?

2.  The controller has many drop down (select tag), whose data is
coming from different tables.  While saving should i have to say as
$this-Client->save?  The class has been declared as,
 class ClientsController extends AppController

3.  As i have allready mentioned the controller code contains many
dropdown tag.
   example : $this->set('City', $this->City->generateList(
                null, "city_id ASC", null, "{n}.City.city_id",
                "{n}.City.city")
                );

The page loads very slowly, is there anyother solution for this?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google