ok, the below code gets me the taxrate but I get this message?
"Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\invoice\invcalc.php on line 13"
<?php
mysql_connect("localhost", "root", "");
mysql_select_db(numbersdb) or die("Unable to select database");
$query = "SELECT...
I'm trying to read the taxrate from the database table and use it with values from another table. the database and table are correct as is the field (taxrate) from the table, value is 0.06. Then I'm trying to multiply that value by the value of a field from another table (charges) then update...
Dan - son - I'm just tring to learn this stuff and I'm really confused now. My menory is really bad and I had help with the original of this program a couple of years ago, which is and has been running for over a year. I'm trying my best to modify it to use it in another application. I can't...
I took a working program and modified it to use different values and can't seem to make it work now. I want have the datepaid, pd & paidsum insert when I key in the amtpaid .
<html><head>
<!--when the paidamt is keyed in, the current date, pd & paidsum are autoinserted-->
<script>
function...
The below code works except that the calcs for "if the amptaid >= totOwed" don't work. I know it has to do with the
statement
"var totOwed = parseInt(rentdue.value) + parseInt(prevbal.value) + parseInt(secdep.value) + parseInt(damage.value) + parseInt(latechg.value) + parseInt(courtcost.value)...
As I indicated in my post, I'm just learning this and thanks for the input but I also indicated in the post that: when I enter the amtpaid the datepaid(current date), the "L"(late), tentpay & paidsum all are inserted.
nothing works beyond the //*###################
<script>
function $_(IDS) { return document.getElementById(IDS); }
function calculate_paid() {
var amtpaid = document.getElementById("amtpaid");
var rentdue = document.getElementById("rentdue");
var prevbal =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.