Code:
$myPage .= '<td><a href=\'javascript:editProduct('.$row['id'].',"'.htmlentities($row['name'],ENT_QUOTES).'")\'>Edit</a></td>'; function editProduct(id,name){ alert(name); }
$row['name'] can have value like pradeep"s or pradeep's. so i need to escape these. but its not working. can you please help me with this....
Leave a comment: