I am putting a html inside the php echo like .
echo '<td onclick="getdesc($descriptn)">';
My problem is onclick is not working i also tried like
echo '<td onclick="getdesc(\'$descriptn\')">';
But in this i am not geting the value of variable $descriptn is directly printing .
Please tell me what is the right way to do this ,
?><td onclick="getdesc(<?= $descriptn ?>)"><?