Math Formula then Update Table

Hi Everyone,

I am rather new to PHP and having trouble with a script. I want the script to first get a number from a database table, then modify it using a formula, then resubmit the modified number back to the database.

I make the PHP do the math, update a record and display a record, I just can’t make it do all three at once :oops:

Even when just copy-pasting the code into one file? Are you getting any errors (by using error_reporting(E_ALL); and die()ing on query errors)?

Sponsor our Newsletter | Privacy Policy | Terms of Service