Now i'm using this code :
global $dbh;
$sql = "SELECT filename FROM t_item where id=".$id;
$req = $dbh->query($sql)->fetch();
$file = $req['filename'];
using : PHP 5.3
I need to repeat this many times, is it possible to fetch directly the value without passing it to $req ?