Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <?php
  2. include('./functions.php');
  3.  
  4. $from = 'locals';
  5. $from_name = 'Quinn';
  6. $sendto = 'updatehyper@gmail.com';
  7. $sendto_name = 'Quinn';
  8. $replyto = 'updatehyper@gmail.com';
  9. $subject = 'QuinnTest';
  10. $message = 'Testing Limits';
  11.  
  12. $x = _mailer($from,$from_name,$sendto,$sendto_name,$replyto,$subject,$message);
  13. print_r($x);
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. if(isset($_POST['student_name'])) {
  35. $student_name = mysqli_real_escape_string($db, $_POST['student_name']);
  36. $update = "UPDATE students SET student_name = $student_name WHERE email = ".$_SESSION['email']."";
  37. $query1 = mysqli_query($db,$update);
  38.  
  39. if($query1 !== FALSE) {
  40. echo 'update successfully';
  41. print_r($query1);
  42. } else {
  43. echo 'update not successfully';
  44. print_r($query1);
  45. }
  46.  
  47. }
  48.  
  49.  
  50.  
  51. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement