Need help with a syntax error
2 posts by 1 authors in: Forums > CMS Builder
Last Post: June 6, 2014 (RSS)
By Mikey - June 6, 2014 - edited: June 6, 2014
Anyone have any suggestions on how to get the syntax error worked out for the line of code below? The issue exist in the line of code that is set to bold.
<?php if($upload = (@$record['document'][0])){ echo '<a href="downloader.php?num='.$record['num'].'" >Published: '.echo date("M Y", strtotime($record['date'])).'</a><br>'; } ?>
Thanks,
Zick
By Mikey - June 6, 2014
Okay - I feel stupid. I found the issue, it was the use of a double echo. Below is the fix.
<?php if($upload = (@$record['document'][0])){ echo '<a href="downloader.php?num='.$record['num'].'" >Published: '.date("M Y", strtotime($record['date'])).'</a><br>'; } ?>