Example using the EAV design pattern with PHP and MySQL