Web Hosting Deals Holiday Logo Design Webcam Chat Website Header Templates Register domain Search Engine Optimisation Web Hosting
Go Back   Talk Mania Forum > Tutorials > PHP / Perl / Java / JavaScript / CGI Tutorials

PHP / Perl / Java / JavaScript / CGI Tutorials PHP / Perl / Java / JavaScript / CGI Tutorials Please do not use this Forum to advertise your site or to link to tutorials.

 Image
Buy Sell Downloads

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-31-2007, 10:17 AM
Junior Member
 
Join Date: Feb 2007
Posts: 25
zech is on a distinguished road
Database Creation Help

Hello guys,sorry if this is going to be too long for you,but i need your help in creating a database in MySQL.
See,i have a school project where i'm supossed to design a database but the problem is i'm not so good in database creation.but i managed to collect some basic information for the database:
(i have put in some example of the data that will be displayed in each field)
FIELD EXAMPLE
ID 1
Business_Name John's Pub
Type_of_Busines Pub/Bar
Country_Region North_America
Country_Name USA
City New York
Street1 11098 Gamersville
Street2 4th Corner Junction
Location_Descriptio NE statue of Liberty,Just after ZE BAR
Known_for Grilled Fish
Url http://www.johns_pub.com
Tel_no 00002345345
Postal_address p.o box 123943
Comment Nice Fishes


Now i know i'll be asking too much from you guys,but have no choice,i know the above information data will need to be put into different tables(normalized tables)to avoid design errors.so if someone can help or just give me hints,i'll be thankful.Thank you again guys.

Reply With Quote
  #2 (permalink)  
Old 08-02-2007, 10:22 AM
Junior Member
 
Join Date: Feb 2007
Posts: 9
tutorialstation is on a distinguished road
Quote:
ID 1
Business_Name John's Pub
Type_of_Busines Pub/Bar
Country_Region North_America
Country_Name USA
City New York
Street1 11098 Gamersville
Street2 4th Corner Junction
Location_Descriptio NE statue of Liberty,Just after ZE BAR
Known_for Grilled Fish
Url http://www.johns_pub.com
Tel_no 00002345345
Postal_address p.o box 123943
Comment Nice Fishes
id: INTEGER, should be primary and autoincrease
other fields are CHARACTERS, feel free to choose length from 64-255

PHP Code:
CREATE TABLE `users` (
`
idINT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`
business_nameVARCHAR64 NOT NULL ,
`
type_of_businessVARCHAR64 NOT NULL ,
`
country_regionVARCHAR64 NOT NULL ,
`
country_nameVARCHAR64 NOT NULL ,
`
cityVARCHAR64 NOT NULL ,
`
street1VARCHAR64 NOT NULL ,
`
street2VARCHAR64 NOT NULL ,
`
location_descriptionVARCHAR255 NOT NULL ,
`
known_forVARCHAR64 NOT NULL ,
`
urlVARCHAR255 NOT NULL ,
`
tel_noVARCHAR32 NOT NULL ,
`
postal_addressVARCHAR255 NOT NULL ,
`
commentVARCHAR255 NOT NULL
ENGINE MYISAM 
some field types need to be changed into INTEGER if you want to make related multi tables
Reply With Quote
  #3 (permalink)  
Old 08-02-2007, 10:43 AM
Junior Member
 
Join Date: Feb 2007
Posts: 25
zech is on a distinguished road
thanks,i really appreciate you taking your time trying to help me,i got your point,but don't you think the table should be broken down into multiple tables(Known as NORMALIZATION) to avoid design problems?
Reply With Quote
  #4 (permalink)  
Old 08-09-2007, 08:54 PM
Junior Member
 
Join Date: Aug 2007
Posts: 11
wilkin is on a distinguished road
Lightbulb Get it solved from here

Hi zech

Though I myself is not an expert at the concern area, I always take help from some professional service providers, currently I am taking the services from http://www.techhelpformarketers.com for my current project. "They are an assembled team of Tech Professional with Extensive Experience in taking down IT task or IT technical problems giving you the Shortest Turnaround Time possible."

Hope it's helpful to you!

[wilkin]
Reply With Quote
  #5 (permalink)  
Old 09-20-2007, 05:58 PM
nadiakamel's Avatar
Junior Member
 
Join Date: Sep 2007
Location: cairo
Posts: 21
nadiakamel is on a distinguished road
nice

how can i export the sql file with dump data to test my website coz i'll publish it?
thanx in advance

Reply With Quote
Reply

Bookmarks

Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +2. The time now is 04:22 PM.


Fake ID

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC8
Forums Copyright © Talk-Mania.com