I'm getting an error and I don't know how to resolve it..
The error is:
Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '$' in C:\xampp\htdocs\records\delete-confirm.php on line 7
Line 7 is:
echo "<script>$(document).ready(function(){$('.modal-" . $row->id . "').hide();$('#delete-" . $row->id . "').click(function(){$('.modal-" . $row->id . "').show();});$('#cancel-" . $row->id . "').click(function(){$('.modal-" . $row->id . "').hide();});});</script>";
I have checked the whole line but there seems no errors in there? What is going wrong here?