I´m trying to write a code that allows me to register information from my model in a database from phpAdmin. Until now, with the help of this tutorial: https://answers.flexsim.com/articles/19407/sql-tutorial-step-by-step-model-construction-29.html, I´ve been able to succesfully modify the code to register my product labels and arrival time into the sink, however, now I want to register the quantity of products that reach the sink by type or label. For example,as you can see if 2 items from product "2052" reach the sink after 10 seconds, that should be reflected in the database.
However, right now I have this line of code that registers the whole input of the sink, so it updates everytime any product enters. But there should be a way to modify this to make it tell me the input by label or type. (It should act as a view entries list.)
string Cantidad = numtostring(getstat (current,"Input",STAT_CURRENT));