yash87 Posted October 26, 2010 Share Posted October 26, 2010 hI, im trying to create a delete confirmation box. This particular line is showing error as below : Parse error: parse error, expecting `','' or `';'' in C:\wamp\www\i-document\search_admin.php on line 103 Plz help. thankz. echo "<td><a href=" . $rows['url'] . ">" . $rows['url'] . "</a></td>"; echo "<td><a href=edit_doc.php?id=" . $rows['id'] . ">Edit</a></td>"; echo "<td><a href=delete.php?id=" . $rows['id'] ." onClick="return confirm('Are you sure you want to delete?');">Delete</a></td>"; Quote Link to comment Share on other sites More sharing options...
wigpip Posted October 26, 2010 Share Posted October 26, 2010 try escaping your double quotes in last line with backslash where you have the JavaScript : echo "<td><a href=delete.php?id=" . $rows['id'] ." onclick=\"return confirm('Are you sure you want to delete?');\">Delete</a></td>"; www.wigpip.com.au Quote Link to comment Share on other sites More sharing options...
yash87 Posted October 26, 2010 Author Share Posted October 26, 2010 Thankz. It worked Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.