| From: | Jesus Rios <galiza-vermelha(at)wanadoo(dot)es> |
|---|---|
| To: | "POSTGRESLQ-PHP" <pgsql-php(at)postgresql(dot)org> |
| Subject: | Date type: DATE |
| Date: | 2003-01-22 18:59:15 |
| Message-ID: | 200301230150.h0N1ofh20670@smtp.wanadoo.es |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-php |
Hi everybody.
I've got a form where I ask for the date.I store the date in 3 variables: for
the day i have $day (dd), for the month i have $month (mm) and for the year
$year (yyyy).
At the same time i have a table which is as it follows:
Table "s_objetivos_caso"
Column | Type | Modifiers
-----------------+---------+-----------
dni | integer | not null
fecha | date | not null
cod_s_objetivos | integer | not null
How do i have to insert the column date?.
$date="$year-$month-$day";
insert into s_objetivos_caso values ($dni,$date,$cod_s_objetivos,$conn);
Can anyboy help me for how a i must format the date for introduce into the
table???
Thank you. And sorry with my English.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kevin Gordon | 2003-01-23 08:05:55 | Re: postgresql primarykeys foreignkeys tablenames |
| Previous Message | Adrian Tineo | 2003-01-22 14:54:38 | Re: Password Encryption to replicate MySQL PASSWORD function |