Hello all!
I have a question to you.
I would like to create photo gallery.
I wonder if I should store photos (uploaded by users) in database
$data = file_get_conten ts($_FILES['photo']['tmp_name']);
$data = mysql_real_esca pe_string($data );
// Preparing data to be used in MySQL query
mysql_query("IN SERT INTO {$table}
SET ext='$ext', title='$title',
data='$data'");
$msg = 'Success: image uploaded';
or I should store uploaded photo files as files in the server folder?
Few years ago in my previous work I worked in MS Access application, and
in my opinion storing photos in this database are not so good, becuase
uploaded
photo files stored in MS Access application, enlarged the database a few
times.
That`s why storing such files in database is not so relevant and the better
way
was to saved these files in the specified folder.
What about Mysql?
Could you give me your opinions?
M.
I have a question to you.
I would like to create photo gallery.
I wonder if I should store photos (uploaded by users) in database
$data = file_get_conten ts($_FILES['photo']['tmp_name']);
$data = mysql_real_esca pe_string($data );
// Preparing data to be used in MySQL query
mysql_query("IN SERT INTO {$table}
SET ext='$ext', title='$title',
data='$data'");
$msg = 'Success: image uploaded';
or I should store uploaded photo files as files in the server folder?
Few years ago in my previous work I worked in MS Access application, and
in my opinion storing photos in this database are not so good, becuase
uploaded
photo files stored in MS Access application, enlarged the database a few
times.
That`s why storing such files in database is not so relevant and the better
way
was to saved these files in the specified folder.
What about Mysql?
Could you give me your opinions?
M.
Comment