tags:

views:

99

answers:

2

I am using this code:

<a href='#' onclick='makewindows(/"".$html."/"); return false;'>Click for full description </a></p>

which is part of a much alrger quoted string, which gives this error:

Parse error: syntax error, unexpected '"', expecting ',' or ';' in C:\Programme\EasyPHP 2.0b1\www\2\get_auction.php on line 74

The above code is line 74, but everything seems perfectly matched, what am I missing?

+2  A: 

I think it's because the escape char is a backslash. IE: \" not /"

davethegr8
A: 

Consider using a template language: having "large quoted string" means unmanageable code. (btw, yes you should escape with the "\" char, not "/")

cheng81