Gossamer Forum
Home : General : Databases and SQL :

style question

Quote Reply
style question
just wondering if there is a recommended style for capitalization of table and field names etc. thanks
Quote Reply
Re: [delicia] style question In reply to
Try this (or rather, one of these):

Code:
strong {
text-transform: lowercase; /* force text to lowercase */
text-transform: uppercase; /* force text to uppercase */
text-transform: capitalize; /* force text to proper case */
}

or

Code:
div.uppercase {text-transform: uppercase;}

div.caps {text-transform: capitalize;}

Last edited by:

MJB: Aug 3, 2010, 3:24 PM
Quote Reply
Re: [MJB] style question In reply to
Some more examples here.
Quote Reply
Re: [delicia] style question In reply to
delicia wrote:
just wondering if there is a recommended style for capitalization of table and field names etc. thanks

Are you refering to the actual field/table names themselves, OR as MJB suggested with the CSS?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] style question In reply to
you got it - the actual field names and table names, i.e. username vs Username
Quote Reply
Re: [delicia] style question In reply to
Hi,

Well, personally I prefer "Username", over "username" .. and if you have multiple words, i.e "User_Password" instead of "user_password"

To be honest though, there is no "standard" as such. Some people even do it as USERNAME or USER_PASSWORD (not my cup of tea though =))

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] style question In reply to
well, if there's no standard, i like your style best.
Quote Reply
Re: [Andy] style question In reply to
See: http://en.wikipedia.org/...on_%28programming%29

You usually don't put delimiters between words when you do camel case (eg. UserPassword).

Adrian
Quote Reply
Re: [brewt] style question In reply to
brewt wrote:
See: http://en.wikipedia.org/...on_%28programming%29

You usually don't put delimiters between words when you do camel case (eg. UserPassword).

True - I was just giving some examples Angelic

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates