**Another good way to do this is to maintain a table structure in the database that associates the exposure number to its description. This way you can display the exposure description straight from your database (you can also populate a drop-down menu on web forms from the exposure_info table). Just follow the example SQL to see if you understand. **
CREATE TABLE photo_clients(
id INT AUTO_INCREMENT PRIMARY KEY,
client_name VARCHAR(100),
exposure TINYINT
);
CREATE TABLE exposure_info(
exposure INT AUTO_INCREMENT PRIMARY KEY,
description VARCHAR(100)
);
INSERT INTO exposure_info (description) VALUES ('mini'), ('standard'), ('poster');
INSERT INTO photo_clients (client_name, exposure) VALUES ('John Doe', 2), ('Jane Smith', 1), ('Johnny Walker', 3);
SELECT a.client_name AS client, b.description AS exposure FROM photo_clients a, exposure_info b WHERE a.exposure = b.exposure;
The output of the above statement should look something like:
client exposure
------------------------
Jane Smith mini
John Doe standard
Johnny Walker poster