hi,
i'm trying to add code from statcounter so that every result from a database displayed on a page can be tracked. the issue seems to be all the quotes. this is what i tried:
update physicians
set webstats='<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=....;
var sc_invisible=0;
var sc_partition=26;
var sc_security="....";
</script><script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.
js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c27.statcounter.com/counter.php?sc_project=....&java=0&security=....&i nvisible=0" alt="free hit counter" border="0"></a> </noscript>
<!-- End of StatCounter Code -->'
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''<script type="text/javascript"language="javascript">
var sc_project=....;
' at line 2
the quotes become an issue. i also tried it without the StatCounter start and end line, but that didn't work either. suggestions please.