Click here to Skip to main content
15,903,663 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody
I am working on a website where I will be putting some items for sells online, and those items will be categorized like this:

Laptops |the Image of the Laptop | Price of the Laptop| and Details|

Printers| #######################| Price | and Details

Photocopier| Images |price| and Details

House to rent| image of the House| Price| and details

Car to hire| images of the Car | price | and Details

Car for Sell| Images of the Car| Price| and Details

For example, an item + the image of that item, the price and details of the item and my issue here is how can I insert the Images field?

I am using php my admin, working on MSQL DB.

Can anybody help me? Thanks in advance for your help. Best Regards.
Posted
Updated 24-Jan-11 5:43am
v2
Comments
Kschuler 24-Jan-11 11:43am    
Edit - Changed question title to be more accurate and fixed some language.

1 solution

When working with images, you've got a couple of choices in how you want to store the data

1) within the database itself, using BLOB type

http://www.wellho.net/solutions/php-example-php-form-image-upload-store-in-mysql-database-retreive.html[^]

2) On the file system, and your database record contains a string that describes the location of the file
e.g

D:\Images\Store\MyFile.jpg


Both methods have advantages \ disadvantages

http://databases.aspfaq.com/database/should-i-store-images-in-the-database-or-the-filesystem.html[^]
 
Share this answer
 
Comments
ft85 24-Jan-11 11:41am    
Thanks Very much i will go thru these URL , i hope it will help me understand

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900