Forum Moderators: coopster
</td>");
I have no idea how to fix this error on line 6 which starts with topslide[0] and the error is as follows
Parse error: syntax error, unexpected T_STRING in /home/baazaco/public_html/test/music/index.php on line 11
Any help will be really really appreciated.
[edited by: eelixduppy at 5:30 pm (utc) on Mar. 11, 2007]
[edit reason] exemplified domain name [/edit]
You must escape the double quotes on that line:
'<a href=\"http://www.example.com/ads/index.php?action=show&id=12\"><img src=\"./images/albums/rang.png\" width = \"100%\" border = 0></a>'
Notice the use of the backslash (\) for escaping quotes. For more information, read the documentation for Strings [us3.php.net] at php.net.
Good luck! :)
Now my problem is that the solution you given me, I added to the entire script but at the end, it still gives me the error as
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING
the line which it is indicating is the end of the script...which is
</td>");
print("<td ALIGN = 'center' width = '20%' bgcolor = '#990000'>
<script type=\"text/javascript\">
//Specify the slider's width (in pixels)
var sliderwidth=\"168px\"
//Specify the slider's height
var sliderheight=\"831px\"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=2
//configure background color:
slidebgcolor=\"#990000\"
topslide[0]='<a href=\"http://www.example.com/ads/index.php?action=album&id=535\"><img src=\"./images/albums/rang_de_basanti.png\" width = \"100%\" border = 0></a>'
----code
----code
----code
</td>");
The last one is ended the same as shown, stil its giving the issue..i dont want to cut and paste the code here but the code is as shown on the link above. I really really need to sort this out. Any help will be appreciated guys.
[edited by: eelixduppy at 6:24 pm (utc) on Mar. 11, 2007]
[edit reason] exemplified domain - TOS [webmasterworld.com] [/edit]