setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION) ; //if ($bd) { // echo "Connected to the $db database successfully!"; //} $sth = $db->prepare('SELECT * FROM lab01.osoba ORDER BY nazwisko') ; $sth->execute() ; $resultset = $sth->fetchAll() ; ?>
Lp. | Nazwisko | Imie | Ocena | '.$lp.' | '.$row['nazwisko'].' | '.$row['imie'].' | '.$row['ocena'].' | ' ; } ?>
---|