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 Code / Script To check weather the given email exists in a domain
Hi,I want to implement the following in my web pagein sign up we will ask to enter user existing email id , so now i need to check weather the entered email currently available are not without sending
Specific name typed, specific image shown on html page
Hello,Fairly new to PHP and was curious if someone might know how to solve a fairly simple request.I am currently passing the name of an end user (who types their name in a form field) to a URL which
Search in the PHP Files
have to search asterisk(*) in the php code of the php files .
How to make URL loads only on login
On my page, when a user login he's redirects to user_home.php. I made it also to open the chat screen when the user login.This is the code:Code: // USER IS LOGGED IN, FORWARD TO USER HOMEif(
Why is my row count 0?
Here's the MySQL query i'm running. It basically pulls data from 2 tables based on some data passed.Here are things i know.1. The data passed is passed correctly, and is correct as far as data goes.2.
frames get header location..
i have two frames, one top, one bottom. how do i do a form on the bottom frame that gives me the url of the top frame.is it get header location?.. if so how do i use it to get the top frames url.is
PHP Include w/If IE Condition Statement?
I was having a problem with Internet Exploder (big surprise, right?) displaying my drop down menus improperly. I found a solution that works ... I have a PHP file that I place as an include on all my
problems with php variables in mysql query
i can't seem to get the following query to work. select $q1c from $vote_rate where id = $recent_record LIMIT 0,1 ;this method did not work eitherselect .$q1c. from .$vote_rare. where id =
LSB (PHP 5.3) problem with static value!
hello,i'm having a problem. static::$text variable gets lost at some point. can someone please correct and explain it to me?Line number On/Off| Expand/Contract <?phpclass A { protected
Loops and Classes
I am making a template system and everything seems to be going well up until I have to loop in a variable where things starts to go weird. I need ideas on how to solve this.It is not picking up