Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('./functions.php');
- $from = 'locals';
- $from_name = 'Quinn';
- $sendto = 'updatehyper@gmail.com';
- $sendto_name = 'Quinn';
- $replyto = 'updatehyper@gmail.com';
- $subject = 'QuinnTest';
- $message = 'Testing Limits';
- $x = _mailer($from,$from_name,$sendto,$sendto_name,$replyto,$subject,$message);
- print_r($x);
- if(isset($_POST['student_name'])) {
- $student_name = mysqli_real_escape_string($db, $_POST['student_name']);
- $update = "UPDATE students SET student_name = $student_name WHERE email = ".$_SESSION['email']."";
- $query1 = mysqli_query($db,$update);
- if($query1 !== FALSE) {
- echo 'update successfully';
- print_r($query1);
- } else {
- echo 'update not successfully';
- print_r($query1);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement