KBD

Keith Devens .com

Friday, August 29, 2008 Flag waving
Don't be an asshole. – Jason Hoffman
← 24Chinpokomon! →

Daily link icon Wednesday, December 11, 2002

PHP and Database tips

There are some relatively good PHP tips at PHP Builder (via PHPEverywhere), and a pretty good article on data normalization there too. Turns out I've been using fourth normal form regularly Smiley Though both articles have an extraneous field in their fourth normal form table examples... you don't need the relationId here, and both the relatedUrlId and the relatedUserId should be a combined primary key. His table naming sucks too Smiley I find it's helpful, with a many to many relationship, to have table names like (using his example tables): Users, Urls, and User_Urls. It makes it clear what you're relating together.

← 24Chinpokomon! →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

August 2008
SunMonTueWedThuFriSat
 12
3456789
10111213141516
17181920212223
24252627282930
31 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 3 posts

Recent comments XML

new⇒WoW Forums -> Tanking in Wrath of the Lich King

 cheap wow gold in www.wow4s.com or​www.agamegold.com.and cheap​powerleveli...

74.53.254.179: Aug 29, 11:19pm

new⇒Johnny Walker Blue Label

Wow, thanks for the scotch review​:D

Lagavulin and Laphroaig are​some of...

Keith: Aug 29, 3:35pm

Girls, please don't get breast implants

Wow, After all this time, the​comments on this page continue to​grow. It wa...

Ajeet: Aug 25, 2:36am

Generated in about 0.229s.

(Used 8 db queries)

mobile phone