setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOException $e) { die($e); } $sth = $sqlite->prepare('SELECT * FROM forsale'); $sth->execute(); $result = $sth->fetchAll(); ?> '; $sqlite = null; $sth = null; ?>
ID NAME AVG
'.$row['ID'].''.$row['NAME'].''.$row['AVG'].'