parse

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

parse

Post 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?
User avatar
Think Pink
Forum Contributor
Posts: 106
Joined: Mon Aug 02, 2004 3:29 pm

Post by Think Pink »

what's wrong more exactly?

maybe this will work
<?php echo $tid; ?>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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;' : '';
Post Reply