Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > General > Database Concepts & Design > Accessing 3NF in single web form

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-12-08, 10:40
labyrinthe labyrinthe is offline
Registered User
 
Join Date: Oct 2006
Posts: 5
Accessing 3NF in single web form

I have hundreds of books, so a few years ago I thought I'd make a db for them using mysql. Before creating the db, I came across the intro to normalization on the mysql site (http://dev.mysql.com/tech-resources/...lization.html).

So I went to work, happily streamlining my design until I had 3NF. My problem was that when I started creating tables and actually entering data on the sql commandline, I realized it was going to be a major pain to remember the various tables and where everything went. I also had difficulty with the joins. Other things in life came up and I was distracted from the project.

Now I have some time, and Istill don't know where to look. I am unclear how to set up an interface for adding or viewing the data. I've used PHP a bit for managing a phpBB forum, as well as phpmyadmin. I write bash scripts on a regular basis to admin my systems. I don't care what language or tool I use, I just don't know a place to start. I'm having trouble coming up with search terms for google--I either get pure design or pure representation.

I'd be grateful to anyone who could point me to the stuff in the middle.
Reply With Quote
  #2 (permalink)  
Old 07-12-08, 11:04
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 13,539
"... a major pain to remember the various tables and where everything went"

download HeidiSQL and use that instead of the command line

you will see that it allows you to browse your tables, see their column names, etc.
__________________
r937.com | rudy.ca

pre-order my book Simply SQL from Amazon
Reply With Quote
  #3 (permalink)  
Old 07-12-08, 11:24
labyrinthe labyrinthe is offline
Registered User
 
Join Date: Oct 2006
Posts: 5
Heidi doesn't seem to offer much more than phpmyadmin. The administration is not the problem. What I want is:

- cross platform
- accessible through browser, preferably
- A form or forms for entering and viewing the data w/o the user having to see the 2-column many-to-many forms.

So I'm looking for a web front-end (or language for making it), and instruction on how to represent the 3NF db in a way that hides the implementation from the user.
Reply With Quote
  #4 (permalink)  
Old 07-12-08, 11:33
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 13,539
Quote:
Originally Posted by labyrinthe
So I'm looking for a web front-end (or language for making it)
then use php
__________________
r937.com | rudy.ca

pre-order my book Simply SQL from Amazon
Reply With Quote
  #5 (permalink)  
Old 07-14-08, 18:23
labyrinthe labyrinthe is offline
Registered User
 
Join Date: Oct 2006
Posts: 5
Just mentioning PHP doesn't help. It doesn't point me to a link, doesn't suggest anything to search for, nothing. The problem with many newbs like myself is that they don't even know the terms to search for in an unfamiliar area. I have found nothing that explains how to make a nice form that allows a user to unify the various 3NF tables under one simple interface.

I'll start w/ this resource:
http://www.php-mysql-tutorial.com/

It doesn't explicitly show how to do what I want, but at least it shows how to use a database w/ php. I think I can take it from there, but if someone knows a good resource on the specific problem I stated, I'd be grateful.

Last edited by labyrinthe : 07-14-08 at 18:35.
Reply With Quote
  #6 (permalink)  
Old 07-14-08, 18:58
georgev georgev is offline
SQL Apprentice
 
Join Date: Jan 2007
Location: hiding
Posts: 8,135
Here's a link to a nice php-mysql tutorial: http://www.w3schools.com/php/php_mysql_intro.asp

HTH
__________________
George
You only stop learning when you stop asking questions.
Reply With Quote
  #7 (permalink)  
Old 07-14-08, 19:20
pootle flump pootle flump is offline
COLOSSAL WIN
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 10,342
Here's another link (I likes it):
http://www.tonymarston.net/php-mysql...-heretics.html

If you are looking for abstraction (aka flattening) - check out VIEWS in the documentation.
__________________
Gymnast 2.0
Reply With Quote
  #8 (permalink)  
Old 07-14-08, 22:31
labyrinthe labyrinthe is offline
Registered User
 
Join Date: Oct 2006
Posts: 5
Thank you both so much. I did not realize that there was a php AND mysql on the w3 tutorials. I don't remember it being there several years ago when I went through their php tutorial, but it's possible.

As for the OOP for heretics, thanks for that as well. My first coding experience (after the greatest language of all time, QBasic) was C++. I heard the vaunted creeds of OOP. I followed them. I got tired of some of them. I like this person's renegade take. I'll have to think through the rationale to see what I agree with.

Or maybe I'll just try coding my front-end w/ QBasic... Yes...
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On