Snooble Posted March 2, 2007 Share Posted March 2, 2007 <?php if(($_SESSION['username']) == "Snooble"){ echo "Hello Admin<br><a href="upload.php">Click Here To Upload Songs</a>"; } ?> Man i'm getting fed up with this stuff lol. any help here? Snooble, get parse error (blank page) Quote Link to comment https://forums.phpfreaks.com/topic/40866-smallest-code-problem-1-line/ Share on other sites More sharing options...
craygo Posted March 2, 2007 Share Posted March 2, 2007 Have to escape the double quotes echo "Hello Admin<br><a href=\"upload.php\">Click Here To Upload Songs</a>"; Ray Quote Link to comment https://forums.phpfreaks.com/topic/40866-smallest-code-problem-1-line/#findComment-197861 Share on other sites More sharing options...
Snooble Posted March 2, 2007 Author Share Posted March 2, 2007 rookie alert. Apologies, Thank you very much. Snooble Quote Link to comment https://forums.phpfreaks.com/topic/40866-smallest-code-problem-1-line/#findComment-197862 Share on other sites More sharing options...
redarrow Posted March 2, 2007 Share Posted March 2, 2007 or this no escape <?php if(($_SESSION['username']) == "Snooble"){ echo "Hello Admin<br><a href='upload.php'>Click Here To Upload Songs</a>"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/40866-smallest-code-problem-1-line/#findComment-197863 Share on other sites More sharing options...
Snooble Posted March 2, 2007 Author Share Posted March 2, 2007 s'what i did, thanks Quote Link to comment https://forums.phpfreaks.com/topic/40866-smallest-code-problem-1-line/#findComment-197866 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.