0
I’ll make a system for a colleague so I’m doubtful how I model the database
I have a table with tbl_leituraAtual tbl_leituraAnterior tbl_consumo tbl_factorCorrecao = tbl_total
how do I make this total take the result of this calculation and insert it into the database??? I will do it in php
follows a photo of the system I will do in excel which modelgaem could use to make this system, and when the person type the value I want to already fill the field full value and then have a Ubmit button and save the data in the database.
First do not name the tables with the prefix TBL, if it is a table does not need TBL, it gets a cleaner form its database. Examples (Current Milk, Previous Milk, Consumption, Factorecao).
– Aprendiz
It is also not legal to use Camelcase on behalf of tables. Use the character _ (current milking, previous milking...)
– Diego Henrique