insert.php

<?php // insert.php try { require("./files/connection.php"); //insert some data... $db->exec("INSERT INTO Class (Course, Name, Grade) VALUES ('Science', 'Aba', 90);". "INSERT INTO Class (Course, Name, Grade) VALUES ('Maths', 'Mary', 78); " . "INSERT INTO Class (Course, Name, Grade) VALUES ('English', 'Thomas', 80);"); // close the database connection $db = NULL; } catch(PDOException $e) { print 'Exception : '.$e->getMessage(); } ?>
My Web Design & Development

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.