View Single Post
Old 11-27-2012, 10:23 AM   PM User | #2
Thyrosis
New Coder

 
Join Date: Nov 2012
Posts: 92
Thanks: 4
Thanked 12 Times in 12 Posts
Thyrosis is on a distinguished road
You're using the same double qoutes to set the link attributes as you are to open and close the echo string.

PHP Code:
 echo "<!--- Main Head Starts --->;
 \n<link href="
assets/jodohStyles.css" rel="stylesheet" type="text/css" /> \n " ;
// should be
 
echo "<!--- Main Head Starts --->";
 
n<link href='assets/jodohStyles.css' rel='stylesheet' type='text/css' /> ";
// or escape the double quotes using \" 
Also, you close line 4 using " ; , but continue on line 5 with \n. That can't happen. I think the full lines you are looking for are:

PHP Code:
echo "<!--- Main Head Starts --->";
echo 
"\n<link href=\"assets/jodohStyles.css\" rel=\"stylesheet\" type=\"text/css\" /> \n " ;
echo 
"\n<link rel=\"stylesheet\" href=\"assets/style.css\"/> \n"
In other words, if you end a line with a ; , you need to start the next line with an echo. Otherwise don't close the preceding line with ;, but use a dot instead.

Hope that explains

Regards,
Martin
Thyrosis is offline   Reply With Quote
Users who have thanked Thyrosis for this post:
ramsingh (11-27-2012)