Hi Carl,
I should have been a little clearer.
You need to escape the " that are part of the HTML code, not the " that are part of the PHP code.
Quote:
Originally Posted by CSGCarl
Ok well I have looked and replaced all the " with \" but I still seem to get errors for example:
.........
Code:
<?php If ($vbulletin->userinfo["userid"]!=0)
{
echo \”<td style=\”background-image:url(\”http://www.battlestationextreme.com/images/homepage09.jpg\”); height:40px\”>
............................................................ </table>\”;
} else {
echo \”Your not logged in so we display this\”;
}
?>
|
Should be
Code:
<?php If ($vbulletin->userinfo["userid"]!=0)
{
echo ”<td style=\”background-image:url(\”http://www.battlestationextreme.com/images/homepage09.jpg\”); height:40px\”>
............................................................ </table>”;
} else {
echo ”Your not logged in so we display this”;
}
?>
Quote:
I take it this is right?
PHP Code:
<?php If ($vbulletin->userinfo["userid"]!=0)
|
Yes thats ok, thats part of the PHP code so dont escape them.
Hope that all makes sense