EOSERV Forum > Lounge > php errors -.-
Topic is locked.
Page: << 1 >>
php errors -.-
Author Message
Post #73917 php errors -.-

Anyone good at PHP? i got some errors from this ;



If you think it would help more if u had the errors ill post them.
14 years, 10 weeks ago
Post #73932 Re: php errors -.-

Line 11:


echo "$_COOKIE['ID_my_site']))"


You have two closing brackets on the end that shouldn't be there.

Apart from that, any other errors you may have, we need the error messages to be 100% certain.


---
EOSERV.net Academy Of Trolls, Satirists & Sarcastics
5.5 Years Former Site Administrator / Moderation Team / Member (Retired)
14 years, 10 weeks ago
Post #74018 Re: php errors -.-

Okay, ill fix that small part and post the errors i get.


EdIt;


Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/a9849382/public_html/bannermenu.php on line 11


Checking line 11 atm


;

line 11 is this:


echo "Welcome Guest!"; echo "<a href="register.php" >Register</a>|<a href="login.php" >Login</a>";

14 years, 10 weeks ago
Post #74028 Re: php errors -.-

You need escape characters when using echo.

echo "Welcome Guest!"; echo "<a href=\"register.php\" >Register</a>|<a href=\"login.php\" >Login</a>";

This way it won't see the quotes you're using in your link as the terminating quotes for the 'echo' function.

---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
14 years, 10 weeks ago
Post #74062 Re: php errors -.-


or you can do print "";

(lol second time)

---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
14 years, 10 weeks ago
Post #74065 Re: php errors -.-

Meh thanks for the help, but i decided i didn't really have any need for a login/register system so i just removed it.

14 years, 10 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Lounge > php errors -.-