Jump to content

MySQL/ Application design


Oozooo

Recommended Posts

Hi all,

 

I'm currently developing an website that contains a lot of company profiles. I was wondering what the best database setup would be to save the profile information and to keep it as scalable as possible. Not every company needs the same options.

 

Is is best partice to have 1 company_profile table with the options, and multiple tables for images/reviews connected to that company? ->

 

[company_profile]

c_id - c_email - c_opening_time_monday - c_description - etc

 

[company_images]

c_id - c_filename

 

[company_review]

c_id - c_review

 

 

OR would it be better to have 1 table with:

 

[company_profile_options]

c_id - c_option_type - c_value

 

but then i would have to make the c_value type a long_text to have the ability to store the company description :/

 

Probably a stupid question but i'm just learning this php mysql thingy :)

 

Anyone care to help me out ?

 

----

i see that this is not the right forum for this topic, could someone move it for me ? My apologies

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.