Oracle Posted Sunday at 03:41 PM Share Posted Sunday at 03:41 PM Hi, I am having trouble with <center><table width=90% cellspacing=1 class=table border=1 bordercolor=#636363></center><tr><td> Proposer: [url='viewuser.php?u=".abs(intval($r[']".htmlentities($r['username'])."[/url] </td> I'm getting this error Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /srv/disk22/4182841/www/demonsandangels.royalwebhosting.net/Mods/marriage.php on line 120 is there anyone that can help me with this? Thanks in advance 😃 Quote Link to comment Share on other sites More sharing options...
Inveteratus Posted Sunday at 04:09 PM Share Posted Sunday at 04:09 PM The error message should be sufficient to determine that there is a misplaced ' symbol - and it does point towards the $r['] I suspect the url tag should be [url='viewuser.php?u=" . $r['userid'] . "']" . htmlentities($r['username']) . "[/url] however it would probably be wise to provide more context; i.e. a few lines above and below line 120 in order to provide a more accurate response. Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted Sunday at 11:00 PM Share Posted Sunday at 11:00 PM Hey, your missing a couple of things. a ] for the opening [url], a ) for the ".abs(intval($r[''] your missing the ))." aswell so it should end up looking like this. Proposer: [url='viewuser.php?u=".abs(intval($r['userid']))." ".htmlentities($r['username'])."] [/url] Quote Link to comment Share on other sites More sharing options...
Uridium Posted Monday at 02:43 PM Share Posted Monday at 02:43 PM just testing code breaks cos <a href shouldnt appear as [url <center><table width=90% cellspacing=1 class=table border=1 bordercolor=#636363></center><tr><td> Proposer: <a href='viewuser.php?u=".abs(intval($r[']".htmlentities($r['username'])."> </td> try this version it maybe that the [url statement was an old error from an old forum theme Quote Link to comment Share on other sites More sharing options...
corruptcity || skalman Posted Monday at 02:59 PM Share Posted Monday at 02:59 PM yeah just looked at the only backup of redux I have and I used this <a href='".gen_url('viewuser', true)."&ID={$r['userid']}'>".stripslashes(htmlentities($r['username']))."</a> I wasn't wrong in my first post just needed to change the [URL] to <a> that's all 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.