dawyatt Posted June 14, 2007 Share Posted June 14, 2007 Hello everyone.. It has been a long time since I visited this site, but now i need help! Can anyone please tell me what is wrong with this line of code? echo "| <a href="' . wp_nonce_url('comment.php?action=deletecomment&p=' . $comment->comment_post_ID . '&c=' . $comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . '" onclick="return deleteSomething( 'comment', ' . $comment->comment_ID . ', '' . js_escape(sprintf(__("You are about to delete this comment by '%s'.n'Cancel' to stop, 'OK' to delete."), $comment->comment_author)) . "', theCommentList );">" . __('Delete') . "</a>'; I am getting a parse error when trying to access this file via Wordpress... Thanks! Link to comment https://forums.phpfreaks.com/topic/55582-help-can-you-see-the-problem/ Share on other sites More sharing options...
smc Posted June 14, 2007 Share Posted June 14, 2007 I noticed a few errors where you forgot to put a backslash before a quote that should remain in the string. Example: <?php echo( "<a href=\"http://google.com\">Google</a>" ); ?> Link to comment https://forums.phpfreaks.com/topic/55582-help-can-you-see-the-problem/#findComment-274608 Share on other sites More sharing options...
dawyatt Posted June 14, 2007 Author Share Posted June 14, 2007 thanks for the quick relply... I changed what you suggested, but I continue to get the following error: Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /hsphere/local/home/coirick/blog.coiusa.com/wp-admin/edit-comments.php on line 160 suggestions???? Link to comment https://forums.phpfreaks.com/topic/55582-help-can-you-see-the-problem/#findComment-274616 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.