Code:
<?php
// Connect to the database
$dbLink = new mysqli('localhost', '', '', '');
if(mysqli_connect_errno()) {
die("MySQL connection failed: ". mysqli_connect_error());
}
// Query for a list of all existing files
$sql = 'SELECT `id`, `t_id`, `name`, `mime`, `size`, `created` FROM `file`';
$result = $dbLink->query($sql);
Leave a comment: