Right so this is my code -
<?php echo '- <a class="red_link" href="irl/viewProfile.php?id=' . $_SESSION['id'] . '">My Profile</a>'; ?>
This is what I want it to look like -
<?php echo '- <a class="red_link" href="javascript:ajaxpage('irl/viewProfile.php?id=' . $_SESSION['id'] . ', 'mid');'">My Profile</a>'; ?>
This is the error -
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in lala/the/url/was/here on line 38
Many Thanks!






Reply With Quote




