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) 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 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 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>"; } ?> 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 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
Archived
This topic is now archived and is closed to further replies.