Deleting a record
In a Results page I have a delete button, when this is pressed the record is deleted but an error page is opened.
The code is for that column is:
<td class="WADAResultsEditButtons" nowrap="nowrap"><input type="button" class="formButton ResultsPageButton BFSN UpdateButton" value="" onclick="document.location.href='general_update.php?RecNo=<?php echo($row_WADAboats['RecNo']); ?>
<?php echo(isset($_GET["pageNum_WADAboats"])?"&pageNum_WADAboats=".intval($_GET["pageNum_WADAboats"]):""); ?>';"/><input type="button" class="formButton ResultsPageButton BFSN DeleteButton" value="" onclick="document.getElementById('WADADeleteRecordID').value=<?php echo($row_WADAboats['RecNo']); ?>;document.getElementById('deleteBox').style.display = 'block';document.getElementById('deleteMessage').style.display = 'table';" /></td>
Can you please see what may be wrong?
Many thanks
John