Ok well my friend wrote me a ShortUrl script and I continue to get a

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/janqed/public_html/index.php on line 37

Well Heres line 37..

echo "Thank you! Your new Short URL is <a href='http://www.Lolurl.net/$newid'>http://www.Lolurl.net/$newid</a><br /><a href="index.php">Go Back</a><br /> ";

Any help would be great thanks ahead of time!

Recommended Answers

All 5 Replies

Allright thanks man now it says it on line 39..

lol this is getting old

echo "You did not specify your current URL<br /><a href="index.php">Go Back</a><br /><br />";

w00t I got it thanks so much you even taught me something ' can be inside of " but " cant be inside of ' ;]

mark as solved,if everything is working fine

w00t I got it thanks so much you even taught me something ' can be inside of " but " cant be inside of ' ;]

' can be inside " and " can be inside ', but ' can't be inside ' just like " can't be inside ", but \' and \" can be used to escape the quotes so they are a character in the string, rather than the end.

Sam

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.