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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to