Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['submit'])){
- $points = $_POST['points'];
- $annotation = $_POST['annotation'];
- $id_laboratory = $_GET['id_laboratory'];
- $surname = $student['surname'];
- $name = $student['name'];
- $id_user = $student['id_user'];
- try{
- $pdo = Database::connectDB();
- //$pdo = new PDO($dsn, $user, $password);
- } catch (PDOException $e){
- echo 'Connection to DB failed' . $e->getMessage();
- }
- try {
- $marks -> insertPoints($id_user, $id_laboratory, $points, $annotation);
- } catch (PDOException $e){
- echo "Nie udało się wstawic punktów";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement