Guest User

Untitled

a guest
Mar 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. // <?php
  2. // //If the form has been submitted
  3. // if (isset($_POST['submit']))
  4. // {
  5. // $server = '***';
  6. // $username = '***';
  7. // $password = '****';
  8.  
  9. // //The name of the schema we created earlier in MySQL workbench
  10. // $schema = 'csy2028';
  11.  
  12.  
  13. // $pdo = new PDO('mysql:dbname=' . $schema . ';host=' . $server, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
  14.  
  15. // $pdo->query('INSERT INTO jobs (title, refcode, salary , location, description)
  16. // VALUES(
  17. // "' . $_POST['title'] . '",
  18. // "' . $_POST['refcode'] . '",
  19. // "' . $_POST['salary'] . '",
  20. // "' . $_POST['location'] . '",
  21. // "' . $_POST['description'] . '"
  22. // )');
  23.  
  24. // echo '<p>Record added</p>';
  25. // }
  26. // //The form was not submitted, display the form
  27. // else
  28. // {
Add Comment
Please, Sign In to add comment