echo "<td><a href='#'>Edit</a> | <a href='javascript:delpost('".$cat2['id']."','".$cat2['name']."')'>Delete</a></td>";
This PHP code will output this:
<a href="javascript:delpost(" 85','a)'>Delete</a>
But I want this:
<a href="javascript:delpost('85','a')">Delete</a>
What's wrong with my code?