Date: 11/16/01
- Next message: Laukó Péter: "[PHP-DB] PostgreSQL connection problem"
- Previous message: Lilian Salazar: "Re[2]: [PHP-DB] Upload"
- In reply to: Zach Curtis: "[PHP-DB] Converting Date Form Fields"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Zach
This is how I did it:
$DateToInsert = $year ."-". $month ."-". $day ;
Mike..
"Zach Curtis" <zach <email protected>> wrote in message
news:NFBBIIFDLHAODMOHAEIDIEOACKAA.zach <email protected>
> I have two HTML form fields birthMonth (e.g., Jan=1, Feb=2...) and
birthYear
> (e.g., 2001=2001, 1999=1999...). How can take these two individual form
> fields, then add in a default value of "1" for the birthDay (this is not
> asked in the form), and put this data into a MySQL table field birthDate
> with field type DATE (YYYY-MM-DD)? The part I do not know how to
accomplish
> is taking these form fields and then combining them into a date
> field/format.
>
> Thank you.
>
>
> Zach Curtis
> POPULUS
>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Laukó Péter: "[PHP-DB] PostgreSQL connection problem"
- Previous message: Lilian Salazar: "Re[2]: [PHP-DB] Upload"
- In reply to: Zach Curtis: "[PHP-DB] Converting Date Form Fields"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

