Page 1 of 1

parse

Posted: Thu Sep 09, 2004 6:55 pm
by pinehead18
$edit = ($admin == 1) ? 'Delete Post - <a href=/post.php?method=edit&is_topic=1&tid=' echo $tid '>Edit</a>' : '';

I have a problem when echoing $tid. that was my last restort. It seems just $tid wont work either nor will ".$tid."

any suggestions?

Posted: Thu Sep 09, 2004 7:01 pm
by Think Pink
what's wrong more exactly?

maybe this will work
<?php echo $tid; ?>

Posted: Thu Sep 09, 2004 7:02 pm
by feyd
try

Code: Select all

$edit = ($admin == 1) ? 'Delete Post - &lt;a href="/post.php?method=edit&amp;is_topic=1&amp;tid=' . urlencode($tid) . '"&gt;Edit&lt;/a&gt;' : '';