[HELP] Is there something wrong with this PHP code?
#5

Quote:
Originally Posted by Pinguinn
Посмотреть сообщение
It should be this:

PHP код:
<?php
if(!defined ('FORUMURL'))
{
  
define('FORUMURL''http://www.siliconrp.net63.net');
}
echo 
"<h1>Hello World!</h1>";
if(
defined("FORUMURL")) echo "<li><a href=".FORUMURL.">Forums</a></li>"; else echo "<p>&nbsp;</p>";
?>
You cannot display defines inside quotes.
Ah. Thanks.
Reply


Messages In This Thread
[HELP] Is there something wrong with this PHP code? - by Tarantula - 13.12.2011, 09:11
Re: [HELP] Is there something wrong with this PHP code? - by JiHost - 13.12.2011, 10:38
Re: [HELP] Is there something wrong with this PHP code? - by Tarantula - 13.12.2011, 12:08
Re: [HELP] Is there something wrong with this PHP code? - by Pinguinn - 13.12.2011, 16:36
Re: [HELP] Is there something wrong with this PHP code? - by Tarantula - 13.12.2011, 16:52

Forum Jump:


Users browsing this thread: 2 Guest(s)