How do i get the ' to show in my javascript when i turn php in it the code is like this
var tDay = new Array()
<?for ($j=0; $j < $rows; $j++) { ?>
tDay[<?=$j?>] = "<?=pg_Result($result,$j,'month');?><?=pg_Result($result,$j,'day');?><?=pg_Result($result,$j,'year');?>|<b><a href='<?=trim(pg_Result($result,$j,'URL\''))?> onClick='NewWindow(addyesno)'><?=trim(pg_Result($result,$j,'DESCRIPTION'));?></a></b>"
<?}?>
however the resulting code when trying to view is like this
var tDay = new Array()
tDay[0] = "January 1, 2000|<b><a href='http://ipweb6.cyfi.com onClick='NewWindow(addyesno)'>United Bank</a></b>"
course the ' is missing at the end of the http://ipweb6.cyfi.com and wondered what the command was to display that i thought it was \' or something but i couldn't get that to work