Use variables or definitions in database queries instead of hard-coding table names.
PHP Code:
define('TBL_SESSIONS', 'tbl_sessions');
$result = mysql_query('SELECT * FROM ' . TBL_SESSIONS)
Use Prefixes
Prefix table and field names with short, meaningful identifiers. For example:
tbl_config
configId
cfgProfileId
cfgName
cfgValue
Use a consistent naming scheme
Whether your fields are called cfgProfileId or cfg_profile_id, stick to that convention with the rest of your fields. (Same for table names)
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --