Tell me more ×  I'm trying to create an e-commerce site which
sells PC components using PHP and MySQL.  I'm using a database
which has a table called 'components' which stores PC components
with fields like 'name', 'type' etc. I have a field called
'image' as I was told it is better to store images in the file
system rather than as a BLOB. The field contains the name of the
image for that component (e.g. for Intel i7 2700k processor the
image filed has inteli72700k/jpg). The image will be stored in
'../images/products/'.  Now i'm trying to make my product list
(i.e. a user clicked on 'Processors' and I am now trying to show
the list of products we have, similar to I'm creating a table
where the table heading is the name of the product and there is
one row per product.  <table id="products">
//Connects to the DB, localhost is yourpc, root is the username
and there is no password             $con =
mysql_connect('localhost','root','');             //This is the
database we want to access in phpMyAdm