setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION) ; //if ($bd) { // echo "Connected to the $db database successfully!"; //} $sth = $db->prepare('SELECT * FROM lab01.ksiazka') ; $sth->execute() ; $resultset = $sth->fetchAll() ; ?>
Lp. | ISBN | Tytul | Autor | Rok wydania | Wydawnictwo | Cena | '.$lp.' | '.$row['isbn'].' | '.$row['tytul'] .' | '.$row['autor'].' | '.$row['rok_wydania'] .' | '.$row['wydawnictwo'].' | '.$row['cena'].' | ' ; } ?>
---|