Click to See Complete Forum and Search --> : Date() Just Won't Work


tomyknoker
04-13-2007, 06:14 AM
I have this line

while ($qry = mysql_fetch_array($results)) {
// if (strtotime($qry['loginDateTime']) <= (time() + 86400*31)) {
$login .= 'Name: '.$qry["FirstName"].' '.$qry["LastName"].' ('.$qry["JoinDate"]?date("d/m/Y", strtotime($qry["JoinDate"])).') '.$qry["Email"].''.$qry["rep_NBR"].' ('.$qry["State"].')
';
//}
}

And when I run it I receive

[quoteParse error: parse error, unexpected ';' in e:\emailMembersPending.php on line 43[/quote]

I just don't get it obvioulsy I'm doing something stupid with the 'JoinDate' but I can't work it out!

NogDog
04-14-2007, 07:40 PM
What's up with the "?" in this part of the string assignment?

$qry["JoinDate"]?date("d/m/Y", strtotime($qry["JoinDate"]))