Hi everyone. I am having some trouble with my PHP and jQuery.
<script>
function solveError(id)
{
$('#loading').html('<img src="resources/images/loading.gif" width="16" height="16" />').load('solve_error.php?id=' + id + '');
}
</script>
And here is the PHP
<a href="#" title="Solved" onclick="solveError('<?php echo $error['error_id']; ?>');"><img src="resources/images/icons/tick_circle.png" alt="Solved" /></a>
When I get rid of the id variable from the solveError() function it works but when I have the id variable it stops working. Please help.
Thanks in advance,
Cameron