If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
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, 09: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, 10:04
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
"... 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
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 07-12-08, 10: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, 10:33
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
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
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 07-14-08, 17: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 17:35.
Reply With Quote
  #6 (permalink)  
Old 07-14-08, 17:58
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Here's a link to a nice php-mysql tutorial: http://www.w3schools.com/php/php_mysql_intro.asp

HTH
__________________
George
Twitter | Blog
Reply With Quote
  #7 (permalink)  
Old 07-14-08, 18:20
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
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.
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
  #8 (permalink)  
Old 07-14-08, 21: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

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