Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 21st, 2005, 3:06 PM   #1
TheFalseDragon
Programmer
 
TheFalseDragon's Avatar
 
Join Date: Jun 2005
Location: |\|[][]B |_4|\|D
Posts: 41
Rep Power: 0 TheFalseDragon is on a distinguished road
Post Need help creating a database, php related

nothing has been done and i plan to make it using mysql but however here comes the helping bit

1- I'm not too sure on the best way to sort this for sake of solving errors/problems that may arrise
2- I have no idea how to link a database to a php file so that the php file can add to and edit and read the database
3- It needs to be as small as possible so if there is a more compact way to make a database please do tell

ALSO as a final bid for help if someone can help me out via msn to get me to learn this a bit faster (the syntax isn't so hard i just keep forgetting the commands and using the ones that i think it should be) that that'd be great

oh and to help you out the incomplete list of the values i will need to add to this and size is a REAL issue here. don't wanna have to pay more money :eek:
<!-- tbl_items -->
itemid
itemname
itemmsg
itemcost
itemrarity
itemevent
<!-- tbl_eventhap -->
eventlast
eventlaststampsup
eventlastsup
eventlaststamprare
eventlastrare
eventlaststampcom
eventlastcom
eventcounter
<!-- tbl_shop -->
shopbg
shoplogo
shopmsg
shopinfo
shopsalelist
shoptill
<!-- tbl_shpitem -->
shopitemuser
shopitemlist
shopitemno
shopitemprice
<!-- tbl_pet -->
petid
petownid
petplaceno
petname
petborn
pethp
petmaxhp
petstr
petdef
pettype
petcolour
<!-- tbl_fight -->
fightpethist
fightwin
fightlose
fightdraw
fightsend
fightrecieve
fightxptot
<!-- tbl_im -->
imid
imsend
imrecieve
imsub
immsg
<!-- tbl_trade -->
tradeid
tradewish
tradeowner
tradeit1
tradeit2
tradeit3
tradeit4
tradeit5
tradeit6
tradeit7
tradeit8
tradeit9
tradeit10
tradeit11
tradeit12
tradeit13
tradeit14
tradeit15
tradeit16
tradeit17
tradeit18
tradeit19
tradeit20
tradeoffers
<!-- tbl_event -->
eventtarusr
eventtrade
eventim
eventfight
eventcauseusr
<!-- tbl_users -->
userid
userpass
useremail
usercontact
userlastlog
useractpet
username
userjoin
user13
useraward1
useraward2
useraward3
useraward4
useraward5


that all the ones i can think about now but i may be adding more later

all help greatfully accepted.

Last edited by TheFalseDragon; Jun 22nd, 2005 at 9:38 PM. Reason: Update in infomation
TheFalseDragon is offline   Reply With Quote
Old Jun 21st, 2005, 3:42 PM   #2
kirkl_uk
Programmer
 
kirkl_uk's Avatar
 
Join Date: Apr 2005
Location: England
Posts: 86
Rep Power: 4 kirkl_uk is on a distinguished road
Send a message via MSN to kirkl_uk
I reccommend you sort a proper structure for the database itself first. This is the kind of thing you will need a good book for, unless someone on here is willing to dedicate some time to try and organise this for you. When you're done sorting the structure, I can help you on MSN with setting up the links between PHP and the DB.
__________________
kirkl_uk
kirkl_uk is offline   Reply With Quote
Old Jun 21st, 2005, 4:14 PM   #3
TheFalseDragon
Programmer
 
TheFalseDragon's Avatar
 
Join Date: Jun 2005
Location: |\|[][]B |_4|\|D
Posts: 41
Rep Power: 0 TheFalseDragon is on a distinguished road
thats the thing i've never really made a database like this, i'm planning it but its hard, i'm hoping that in the next few days i'll be able to start working on the database and the site. ps thanks a ton for offering to help over msn.
TheFalseDragon is offline   Reply With Quote
Old Jun 22nd, 2005, 7:49 AM   #4
TheFalseDragon
Programmer
 
TheFalseDragon's Avatar
 
Join Date: Jun 2005
Location: |\|[][]B |_4|\|D
Posts: 41
Rep Power: 0 TheFalseDragon is on a distinguished road
i've started working on my database, as you may see if you looked before i've made quite a few changes to the first post.
TheFalseDragon is offline   Reply With Quote
Old Jun 22nd, 2005, 10:29 AM   #5
kirkl_uk
Programmer
 
kirkl_uk's Avatar
 
Join Date: Apr 2005
Location: England
Posts: 86
Rep Power: 4 kirkl_uk is on a distinguished road
Send a message via MSN to kirkl_uk
Yeah, I can see the progress now . I think you should create a UserAward table and another to link users to awards rather than:

useraward1
useraward2
useraward3
useraward4
useraward5

Some people might not agree with that tho, but I think it's the best way.
__________________
kirkl_uk
kirkl_uk is offline   Reply With Quote
Old Jun 22nd, 2005, 10:36 AM   #6
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
i always create my db's on paper first almost like a flow chart. That way i can see them before i start programming, and make changes etc before the thing is created.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Jun 22nd, 2005, 10:41 AM   #7
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,475
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
My larger DB projects are laid out on a huge wet/dry board.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Jun 22nd, 2005, 11:20 AM   #8
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
yeah that works too, but i don't have the luxuray of a big ass white board....so paper or DIA (a open source app like microsoft visio) is what i use :-)

DIA is quite a good program (and it's free as in beer), it's even got tools to help you map out networks and such. http://www.gnome.org/projects/dia/ for more info.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Jun 22nd, 2005, 11:39 AM   #9
EdSalamander
Programmer
 
EdSalamander's Avatar
 
Join Date: Dec 2004
Location: Tucson, AZ, USA
Posts: 80
Rep Power: 5 EdSalamander is on a distinguished road
Send a message via AIM to EdSalamander
Dia's great. It's what I use to layout my UML whenever I'm designing a big object-oriented project in Linux. When I'm in Windows (which is most of the time) I use AgroUML. It's not as solid a program, but it's still very useful. Technically, all it can make is UML, but I'm sure you could still use it for showing database relationships. It was written in Java so it should run on most platforms. Oh, and it's opensource and free (unlike visio).
__________________
I can pick my friends. And I can pick my nose. So, why can't I pick my friend's nose?
EdSalamander is offline   Reply With Quote
Old Jun 22nd, 2005, 11:48 AM   #10
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
look up 3rd and 4th normal form for rationalising the databases, to make them more efficient and reduce the repeated fields.

(tyesi no it goes to about 7th NF)
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:24 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC