i think i finally solved this anybody.
last time i was getting the wrong results.
Code: <?php
// price of item.
$price="100.00";
//quenity of items.
$quenity="7";
// tax rate.
$tax="17.50";
//discount rate.
$discount="25%";
// monthly payments.
$payments="12";
//total price x queniety.
$total=$price*$quenity;
// add pretax up, divide tax via 100.
$pretax=$tax/100;
//add a 1 to pretax to get the decimal point.
$total_tax=$pretax+1;
//total with out tax.
$total_with_out_tax=$total;
//total with tax.
$total_with_tax=$total*$total_tax;
//total with discount.
$total_with_discount=$total_with_tax-$discount;
//monthly payments.
$monthly_payments=$total_with_tax/$payments;
echo "£".number_format($total_with_discount,2)."";
?>
yeee haaaa, sorry was solved my fault.
PHP Form to Variable.
Hi! I have written a HTML-form code in DreamWeaver CS3 (in a PHP doc) and I really need it to work soon :/I have a form:(<form name="form1" action=""
form variables from database help.
Hi all,I would like to have a form that gives you options based on the results of an mysql query.My example is this, say I have a mysql row with the colum name points and the result is 5. How would I
ALV sum various columns problem
Hi all,
Oracle Text CTX_DOC.snippet slow
I have a table (FILE_TABLE) that contains a blob column (ft_file) and I have created the following Oracle Text Index on that table/file column....
how do I show what a user have selected from a checkbox?
From my code below, how would i show which check boxes have been checked and which radio buttons selected?Code:
rename the file
File.txtCode: ***DOCUMENT***..DN:000044255..CB:..SN:..PY:2009..ED:LA..ED:Home..ID:***DOCUMENT***..DN:000044254..CB:..SN:..PY:2009..ED:LA..ED:Edition..PT:ID:Code: <?php$file = fopen($argv[1],
How could I do this?
Ive got a simple lottery game, and am using an sql database to keep track of the numbers bought. But, when the person comes to buy the ticket, I have to replay to my process page which ticket they
How to add an image/C++ OpenGL?
Hi,
Data storage spaces in varchar2
Trying to understand what's happening.
Why do I get this error?
Error:Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/runevid/public_html/Quests/finished_tutorial.php on line