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... :| -- ----------------------------- Michael Mason Arras People www.arraspeople.co.uk ----------------------------- "Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all. > > Having a problem echoing a broken date. Here's where I'm at: > > $DateAdvertisedBroken = explode("-", $DateAdvertised); > > later, in a table, I use: > > $result[DateAdvertised] > > How can I change this so I can call the broken date...? > > I've tried datebroken [2] etc but no joy. > > -- > ----------------------------- > Michael Mason > Arras People > www.arraspeople.co.uk > ----------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php