SunQuest
 
           General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 10th, 2002, 12:35 PM
DivaX007 DivaX007 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 23 DivaX007 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cleaner Code

win98,localhost

i have another issue. in my database, i have:

a database named, let's say, gallery that contains a table named photogallery which contains these columns:
id, title, photo, linktofullphoto, numvotes, votes, rating
this table is for rating photos, as you know

i also have a database named login containing a table called user which contains these columns:
id, userid, password, fullname, email, notes
this table is for user authenication, as you know

it seems redundant to have these in two different databases when they are both used on the same site for an interrelated purpose. is it possible to tie these together somehow?

also, users need to be able to earn points by A.visiting the site(1) B. posting pics(5) C. Voting(3)

Reply With Quote
  #2  
Old December 10th, 2002, 06:22 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
firstly in one of the tables, you will have to add an extra field to it, so that you can have a refrence point to another article. Your made it a bit difficut on yourself because they are in different databases. Best thing would be to have them in the same database.

Reply With Quote
  #3  
Old December 10th, 2002, 09:25 PM
DivaX007 DivaX007 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 23 DivaX007 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by Ben Rowe
firstly in one of the tables, you will have to add an extra field to it, so that you can have a refrence point to another article. Your made it a bit difficut on yourself because they are in different databases. Best thing would be to have them in the same database.


ok. now i have put the two tables in the same database.
are you saying that i should put the gallery and the user authenication in same table or keep them separate?

Reply With Quote
  #4  
Old December 10th, 2002, 10:52 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
different tables, same database.

Otherwise you will have to create two connections to two different databases, and i dont think you can join two different tables from two differerent databases.

Reply With Quote
  #5  
Old December 11th, 2002, 12:01 AM
DivaX007 DivaX007 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 23 DivaX007 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by Ben Rowe
firstly in one of the tables, you will have to add an extra field to it, so that you can have a refrence point to another article. Your made it a bit difficut on yourself because they are in different databases. Best thing would be to have them in the same database.


ok, i put the info in the same database. would it be feasible to put all of the information in one table?

Reply With Quote
  #6  
Old December 11th, 2002, 12:37 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
no have the two tables, just link them with an id or a refrence point.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Cleaner Code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway