I have a record from a MySQL Database that needs to be validated to see if all the fields have a value or post some alert.
Is the best way to put all the field values into an array and then check the SUM where NOT NULL or Empty to see if it matches the qty of selected fields?
EXAMPLE: $result = | Value | NULL | NULL | Value | EMPTY |
In this example the Record has values from 5 Fields and 2 of those Fields are not Null or Empty
I need Validate to see when all 5 Fields have some value