Rama Posted June 8, 2006 Share Posted June 8, 2006 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\" /] Quote Link to comment https://forums.phpfreaks.com/topic/11538-images-and-categories-in-mysql/ Share on other sites More sharing options...
Fyorl Posted June 9, 2006 Share Posted June 9, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/11538-images-and-categories-in-mysql/#findComment-43459 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.