Jump to content

[SOLVED] Extract Row


Clinton

Recommended Posts

That makes sense. I gave it a shot, however, and I"m getting an error:

 

Parse error: syntax error, unexpected T_IF, expecting ',' or ';' in /trainingreport.php on line 31

 

<?php while ($row=mysql_fetch_assoc($result)){
extract($row);
echo"<tr> <td>$lname $fname $mname</td> <td>" if ($dob=='0000-00-00') echo " "; else echo date('n/j/Y',strtotime({$dob})); "</td> <td>$cdl</td> </tr>";
}
?>

Link to comment
https://forums.phpfreaks.com/topic/101619-solved-extract-row/#findComment-519924
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.