Increasing a db value by 1
Posted: Fri Apr 30, 2010 8:02 pm
Hey,
I am working on part of my script and I need to increase a db field by value of 1 it starts as 0(zero) i then need it to go to 1 then 2 and so on.
I also need to check the db field to equal another db field like this
First db field is the field that has the already given value
second db field is the field that increases
if
stop increasing and add balance to other
else continue
I hope this makes since
Don
I am working on part of my script and I need to increase a db field by value of 1 it starts as 0(zero) i then need it to go to 1 then 2 and so on.
I also need to check the db field to equal another db field like this
First db field is the field that has the already given value
second db field is the field that increases
if
Code: Select all
$second['dbvalue'] == $first['dbvalue']else continue
I hope this makes since
Don