22.07.2017, 20:34
Why you don't use cache_get_field_content_int ? Way easier , no need to know field index.
But for your problem , make sure both field indexes its same as the fields from the database where urine and hunger are stored.
And about values/lenght of a int in mysql is useless, that number its only for show when you view the table, integer value will be always same beside that value. https://dev.mysql.com/doc/refman/5.7...ger-types.html
But for your problem , make sure both field indexes its same as the fields from the database where urine and hunger are stored.
And about values/lenght of a int in mysql is useless, that number its only for show when you view the table, integer value will be always same beside that value. https://dev.mysql.com/doc/refman/5.7...ger-types.html