Jump to content

Parse error: I Don't See It


refiking

Recommended Posts

Here's what the script returns:

 

Parse error: syntax error, unexpected ';' on line 67

 

Here is line 67:

echo '<td><font color="silver">'.$gd["lname"].'</font></td><td><font color="silver">'.date('m/d/y g:i A', strtotime($gd["dtime"]).'</td><td><a href="udt.php?user='.$uid.'&lid='.$gd['lname'].'&sid='.$gd['sid'].'">Update '.$gd['lname'].' Now></a></td>';}?>

 

 

Link to comment
https://forums.phpfreaks.com/topic/102412-parse-error-i-dont-see-it/
Share on other sites

You're missing a closing bracket after your date function. A prime example why it's better to split this sort of thing up onto multiple lines. You would have seen it if you did - it was the only way i could find it:

 

<?php
echo '<td><font color="silver">'.$gd["lname"].'</font></td><td><font color="silver">'.date('m/d/y g:i A', strtotime($gd["dtime"])).'</td><td><a href="udt.php?user='.$uid.'&lid='.$gd['lname'].'&sid='.$gd['sid'].'">Update '.$gd['lname'].' Now></a></td>';}?>

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.