questions
1. in my recent upload file, all details of the file is saved in a table name upload
$query = "INSERT INTO upload (name, size, type, content ) ".
"VALUES ('$fileName', '$fileSize', '$fileType', '$content')";
what I intend to do now is to save the uploaded file to a field name 'resources'-together with 10 other fields in table lesson.
how to uniquely identify the attachment to a specific lesson plan?
(because 1 field holds only one value, compared to table that can has many fields)
- to view the details of uploaded file,I did like this
$query = "SELECT id, name FROM upload";
,
however how can we do this if there is more that 1 uploded file?
thank you.