Re: Broken data within an Array
| From: | David Robley | Date: | Wed, 01 Sep 2004 07:25:42 +0000 |
| Subject: | Re: Broken data within an Array | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195371@lists.php.net to get a copy of this message | ||
On Wed, 1 Sep 2004 16:51, Harlequin wrote:
> Following the query I have this:
>
> <?php while($result = mysql_fetch_array($query))
> {
> $DateAdvertised=$row["DateAdvertised"];
> $DateAdvertisedBroken = explode("-", $DateAdvertised);
>
> Then a little while later this:
>
> $DateAdvertisedBroken[2]-$DateAdvertisedBroken[1]-$DateAdvertisedBroken[0]
>
> which returns nothing, but should as $DateAdvertised does... :|
>
You are subtracting the values???? Presumably you really want to concatenate
the values, sepearated by dashes, as a string?
--
David Robley
Make like a shepherd and get the flock out of here.