Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // <?php
- // //If the form has been submitted
- // if (isset($_POST['submit']))
- // {
- // $server = '***';
- // $username = '***';
- // $password = '****';
- // //The name of the schema we created earlier in MySQL workbench
- // $schema = 'csy2028';
- // $pdo = new PDO('mysql:dbname=' . $schema . ';host=' . $server, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
- // $pdo->query('INSERT INTO jobs (title, refcode, salary , location, description)
- // VALUES(
- // "' . $_POST['title'] . '",
- // "' . $_POST['refcode'] . '",
- // "' . $_POST['salary'] . '",
- // "' . $_POST['location'] . '",
- // "' . $_POST['description'] . '"
- // )');
- // echo '<p>Record added</p>';
- // }
- // //The form was not submitted, display the form
- // else
- // {
Add Comment
Please, Sign In to add comment