Hi,
I refrained from giving specific DB-related code as it will depend on the specific method you use in your project - PDO, ORM ,etc.
Anyway, a simple example using PDO would look like this:
$stmt = $dbh->prepare("INSERT INTO FILES (name) VALUES (:name)");
$stmt->bindParam(':name', $targetPath);
$stmt->execute();
Note that the actual file name is available in $targetPath.
The example will work with one file as well.
All the best,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework -
download Kendo UI now!