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.
Need help with basic sql
Hi,
Sum of Values in an Array
This is probably really simple... but it's been years since I've written anything, so bare with me!I've got a MySQL database setup with a table that has multiple fields, where one is a numerical
Change Sort Order to Display Newest File First
Hi Guys,I have a page that sorts the contents (PDFs) of a directory and displays them on the webpage chronologically from the oldest (at top) to the newest (at bottom).I'd like to reverse this display
Anti Spam Code
Ok where do i start? Probably by telling you I have very little working knowledge of PHP and that I have been working on this problem for 3 days and have had no luck!Here we go:I have a rate and
need help modifying script
Hi guys,I'm fairly new to php and am having a bit of trouble modifying a script.This is the script:Code: <?php##############################################################################
Check Digits and extracting digits
I think I can figure out the code for this but I am having a very hard time getting past the first step. Any suggestions are greatly appreciated.
Multidimensional Array into an Html table, help!
Hello all, I am new to HTML/PHP so any help would be great.I have a multidimensional array filled with values that I am trying to output into an html table. This works (outputs value of array):Code:
newbie error
what is wrong with this code ? <html><body><?php$conn=odbc_connect('Towel','','');if (!$conn) {exit("Connection Failed: " . $conn);}$sql="SELECT *
Solution to the FindControl problem
I have seen may posts about having problems with the FindControl method. Most seem to come about because the control being searched for is nested within a container other than the webform.I came
Database connection failure
Hello All,