New users seek advice; phpsql uses id to subtract the output difference from the fields with the same recent content. php & nbsp; mysql databases use their IDs to subtract the output difference, for example: type field (id-1, field content 5); (id-8, field content 9); output 9-5 difference. Beginner & nbsp. Thanks & nbsp; thank you for your advice. use the id to subtract the output difference for fields with the same content recently in php SQL.
In the php mysql database, find the fields with the same content recently and subtract the output difference with their IDs, for example, the type field (id-1, field content 5 ); (id-8, field content 9); output 9-5 difference. Beginner details. Thank you.
Php SQL MySQL
Share:
------ Solution --------------------
I do not understand what you mean. I suggest you post
Create table ....;
Insert into table...; statement
And expected results, and briefly describe the algorithm logic.
------ Solution --------------------
Read data to the array and calculate the data as needed
------ Solution --------------------
At least you need to know how your data is organized.