fork download
  1. <?php
  2. $sql = "UPDATE students SET first_name = {$read_first_name} last_name = {$read_last_name }
  3. group = {$read_group} first_exam = {$read_1_exam} second_exam = {$read_2_exam}
  4. third_exam = {$read_3_exam};";
  5. $statment = $this->db->prepare($sql);
  6. $statment = $statement->execute();
  7. ?>
Runtime error #stdin #stdout #stderr 0.01s 20520KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Notice:  Undefined variable: read_first_name in /home/OHQW0A/prog.php on line 2
PHP Notice:  Undefined variable: read_last_name in /home/OHQW0A/prog.php on line 2
PHP Notice:  Undefined variable: read_group in /home/OHQW0A/prog.php on line 3
PHP Notice:  Undefined variable: read_1_exam in /home/OHQW0A/prog.php on line 3
PHP Notice:  Undefined variable: read_2_exam in /home/OHQW0A/prog.php on line 3
PHP Notice:  Undefined variable: read_3_exam in /home/OHQW0A/prog.php on line 4
PHP Fatal error:  Using $this when not in object context in /home/OHQW0A/prog.php on line 5