You can still program structurally in php as in the old days and create simple services, but changes to the language over the decade have led to...
You should be using some IDE software. You won't have any problems with syntax errors and if/else brackets. I am using NetBeans.
The good practice is NOT to htmlspecialchars or htmlentities the input data before you store it in database (it should be raw). You just need to...
So you need to declare only columns you want to update.
Line 20 You set: $amtpaid=$_POST['amtpaid']; But in line 24 you overwrites it and set as 0: $amtpaid = 0; Line 42 you set $receiptno = 0; And in...
Separate names with a comma.