I have a table with 15 Columns ID
, USERNAME
, PASSWORD
, EMAIL
, TELEPHONE
, FAX
, ADDRESS
, COUNTRY
, CITY
, NATIONALITY
, EDUCATION
, etc in mysql database.
There is some required fields and optional fields. Users will fill the required fields and some optional fields. I need to give every user completeness score (e.g. Completeness Score 40%
) to increase there attention to fill all optional fields.
How can I do that in PHP? I've tried to do it by ( SELECT COUNT WHERE ) - but without any result.