Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

echo javascript with single quotes

i got this thing

<?
if (mysql_num_rows($say) == 1) {
    $a = "cicişsin!"; 
}
elseif (mysql_num_rows($say) == 0) {
    $a = "<a href='javascript:LaunchPopup('a2.php','250','1');'>ciciş yap</a>";
}
?>

but i cant echo second $a.. its exits at "javascript:LaunchPopup(" single quotes not shown

what can i do?

like image 417
Ali Demirci Avatar asked Feb 04 '10 12:02

Ali Demirci


1 Answers

$a = "<a href=\"javascript:LaunchPopup('a2.php','250','1');\">ciciş yap</a>";
like image 86
Lucas Avatar answered Oct 03 '22 22:10

Lucas