You did not insert it into the database. See the problem is you added the if statements that did the math after the data was already added to the data base. Try ouputting the vaules to the browser to check that your values match what you want added to the database. Also make sure that the post value actually has some sort of value in it by making a sample page. Let me show you what I mean give me a second to write an example for you ok and I'll update this post with the example and screen shots of it working ok.
newphpcoder like this