[EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Extracting from an Array
> >
> > Hi John,
> >
> > > /* Using PostgreSQL: it needs $numrows and $row=0 to work. Also set it
>
> to
>
> > choose only one record in db to simp
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Extracting from an Array
>
> Hi John,
>
> /* Using PostgreSQL: it needs $numrows and $row=0 to work. Also set it
to
> chooseonly one record in db to simplify testing. Date was set
to 10
> May
> 1998*/
> // $db conect st
lmes...
>
> > -Original Message-
> > From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 12, 2002 9:32 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Extracting from an Array
> >
> > Hi John,
> >
> > Yup. I
t;2". Do you realize what I'm trying to say??
>
> ---John Holmes...
>
> > -Original Message-
> > From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 12, 2002 8:15 PM
> > To: Lazor, Ed
> > Cc: [EMAIL PROTECTED]
> > Subje
olmes...
> -Original Message-
> From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 8:15 PM
> To: Lazor, Ed
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Extracting from an Array
>
> Thanks Ed,
>
> Slight change -- I forgot that the de
> I have a db field, type varchar, that is actually a 'date'
> string formatted as dd-mm-. I used type 'varchar' (rather than
> type 'date') since I had to accomplish other things with it.
> Now, however, I do need to extract the Year (the last four
> digits in the array).
Ummm, are
How about just
SELECT RIGHT(fieldname,4) FROM tablename
---John Holmes...
> -Original Message-
> From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 7:09 PM
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Extracting f
-
> > From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 12, 2002 4:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Extracting from an Array
> >
> >
> > I have a db field, type varchar, that is actually a 'date'
>
[EMAIL PROTECTED]]
> Sent: Wednesday, June 12, 2002 4:11 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Extracting from an Array
>
>
> I have a db field, type varchar, that is actually a 'date'
> string formatted
> as dd-mm-. I used type 'varchar'
I have a db field, type varchar, that is actually a 'date' string formatted
as dd-mm-. I used type 'varchar' (rather than type 'date') since I had to
accomplish other things with it.
Now, however, I do need to extract the Year (the last four digits in the
array). I've tried to access the a
10 matches
Mail list logo