0

index.php

echo '<a href="'<?php echo SITEURL; ?>'IndonusaCMS/event_article.php?id='.$data['ID'].'">'.$data['title'].'</a>';

wds.php

<?php

define('SITEURL', 'http://www.indonusa.net.id/');


?>

When I try to run index.php this error appears:

Parse error: syntax error, unexpected '?' in E:\xampp\htdocs\IndonusaCMS\index.php on line 106

How to fix it?

3
Contributors
2
Replies
13
Views
3 Years
Discussion Span
Last Post by albucurus
0

Badly formed. Try...

echo "<a href='" . SITEURL . "IndonusaCMS/event_article.php?id={$data['ID']}'>{$data['title']}</a>";
0

Hi,
try this:

 echo '<a href="'.SITEURL.'IndonusaCMS/event_article.php?id='.$data['ID'].'">'.$data['title'].'</a>';
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.