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?

Member Avatar for diafol

Badly formed. Try...

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

Hi,
try this:

 echo '<a href="'.SITEURL.'IndonusaCMS/event_article.php?id='.$data['ID'].'">'.$data['title'].'</a>';
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.