cluce Posted June 14, 2007 Share Posted June 14, 2007 can someone tell me the correct way to code this statement. I am rusty with HTML and php together ... <?php if ($priv === true) { <a href="post_topic.php">update_banner</a> };?> Quote Link to comment Share on other sites More sharing options...
simcoweb Posted June 14, 2007 Share Posted June 14, 2007 Change to this: <?php if ($priv === true) { echo "<a href="post_topic.php">update_banner</a>"; } ?> Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted June 14, 2007 Share Posted June 14, 2007 You can do it multiple different ways. Here are two: <?php if ($priv === true) { echo '<a href="post_topic.php">update_banner</a>'; } ?> or <?php if ($priv === true) { ?> <a href="post_topic.php">update_banner</a> <?php } ?> Ken Quote Link to comment Share on other sites More sharing options...
cluce Posted June 14, 2007 Author Share Posted June 14, 2007 thats right thanx 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.