Dave,
Try:
$postcode_parts = explode(" ", $postcode);
The first part of the postcode will be available in $postcode_parts[0].
- Chris
> -Original Message-
> From: Dave Carrera [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 5:29 PM
> To: [EMAIL PROTECTED]
> Subject:
The following works fine for me:
$currentword = ereg_replace("\*","%",$currentword);
Chris
}:)
> -Original Message-
> From: matt stewart [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, January 15, 2002 9:57 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-DB] Replacing * with %
>
> just
Sorry, correction:
> -Original Message-
> From: Rosser, Chris
> Sent: Thursday, December 20, 2001 5:37 PM
> To: [EMAIL PROTECTED]
> Cc: 'nautilis'
> Subject: RE: [PHP-DB] MySQL date formats
>
> nautilis,
>
> Leave the date
nautilis,
Leave the date in the database in MySQL format (/MM/DD) and when you
need to display the date on your page, just do this:
That just splits up the three numbers, and rearranges them. Easy :)
Chris
}:)
> -Original Message-
> From: nautilis [SMTP:[EMAIL PROTECTED]]
> Sent: