Jump to content

Images and Categories in Mysql


Rama

Recommended Posts

well guys.. I know some basic Php, and Mysql, but not much.

Im creating a small download script for my law Site, ( im studying law )
nothing important, its something really basic, that will help me to update the site easily...

1 question :

Is it better or faster to host images on MySQL ? or is it better to upload them to my site,
and just enter the url in the database ?


2 question :

While i work with categories for downloads, what is better, to create a table for each category,
or put them all toghether in one table by using a "categorie" fiels in the database ????


any help, will be much apreciated, and sorry if my english is not so good .... im from argentina...

thanks in advance-- [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]
Link to comment
Share on other sites

You can't actually store images in MySQL. You'd have to upload the images to your site and add the URL into one of the fields in your table. PHP can do both but you could do it manually if you wanted.

As for your other question, it would be better to create a new table with all the categories with unique ids for each row.
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.