Link to home
Start Free TrialLog in
Avatar of jcbodyworks
jcbodyworks

asked on

PHP incorrect output with loop

I am trying to construct the correct syntax for a php code, here it is, keeps displaying incorrectly. Any light on this? Thanks!

while ($row=mysql_fetch_array($upcoming))
{
$appid[$n]=$row['ID'];
$appdatetime[$n]=$row['apptdatetime'];
$schedulet[$l]=date('g:i A' , strtotime($appdatetime[$n]));
$schedulea[$l]=date("m/d/Y",strtotime($appdatetime[$n]));
$display .= $schedulea[$l] . "@" . $schedulet[$l] ;
$display .= ". To cancel, click <a href='cancellations.php?quickcancel=yes&id=" . $appid[$n] . '"  here</a><br>\n";
$display .= '</font><font size="2" face="Eras Demi ITC">\n';

if ($row['ID']=="")
{
$display .= '<font size="2" face="Eras Demi ITC">No Future Appointments Scheduled';
}
$n++;
$l++;
}

echo "$display";
Avatar of gamebits
gamebits
Flag of Canada image

What is it displaying that is incorrect?
ASKER CERTIFIED SOLUTION
Avatar of MasonWolf
MasonWolf
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial