Can anyone tell me why this variable is not working in this code ?
$ROOT="http://www.mysite.com/new";
$rating=$rating."<img alt='$imrating' src='$ROOT/images/starn.gif'>";
$ROOT is not working as a variable in the rating line.
Now I can hardcode it and it works, but I need the variable to work in that line.
ROOT need to work because I am using basically fake directorys, for search friendly urls.
So ROOT variable is important to work.
I tried ".$ROOT." and also with a single qoute as well, so if you know what I am doing wrong please help.