hi, i'm currently learning php and i need some help.
i want to make some math operations with some data from an mysql table, and printing the result.
the operation is simple [x-(x-1)]*y but i didn't manage to write it properly.
there are two columns
x - the current read number from col2
(x-1) - the previous read number from col2
y - number from the same row as the (x-1) number, but from a diferent column (col1).
i made the mysql connection and the printing, i got in trouble with this part.
can someone help?
thank you,