Jump to content

calculate data in table


Pavlin24

Recommended Posts

Hello there,

some help in this?

 

Is it possible to calculate numeric data in table with data coming from forms?

 

I mean something like this:

 

mysql_query("UPDATE ov SET dt_ob=(dt_ob+'$suma1') WHERE smetka='$debit' ",$con)

 

dt_ob and smetka are coloumns in the table,

$suma1 and $debit are data coming from form.

 

 

The code above do not work to me.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...