In this article, we will explain How to Create an Invoicing system in PHP. the invoice will be inserted into the database. Example:- form.php <?php error_reporting( error_reporting() & ~E_NOTICE ); $item3=$_POST['item10']; $quantity3=$_POST['qty10']; $price3=$_POST['price10']; $item3=$_POST['item9']; $quantity3=$_POST['qty9']; $price3=$_POST['price9']; $vat=$_POST['vat']; $total=$_POST['total']; $grand=$_POST['grand']; $amount10=$_POST['amount10']; $amount9=$_POST['amount9']; $insert="insert into invoice set item10='$item10',qty10='$quantity10',price10='$price10',amount10='$amount10', item9='$item9',qty9='$quantity9',price9='$price9',amount9='$amount9', total='$total', vat='$vat', grand='$grand',bal='$grand'"; $result=mysql_query($insert); header("location:index.php"); } ?> db.php […]