Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function input_lab_results($name, $image, $descrip) {
- $query = "INSERT INTO pat_table (pat_name, pat_image, pat_descrip, pat_doctor, pat_resident, pat_create, pat_modify) VALUES (?, ?, ?, ?, ?, ?, ?)";
- if($stmt = $this->conn->prepare($query)){
- $stmt->bind_param('sssiidd', $name, $image, $descrip, 0, 0, date("Ymd"), date("Ymd"));
- $stmt->execute();
- die();
- } else{
- die($this->conn->error);
- }
- }
- `$query = "INSERT INTO pat_table (pat_name, pat_image, pat_descrip, pat_doctor, pat_resident, pat_create, pat_modify) VALUES (?, ?, ?, ?, ?, ?, ?)";`
- $pat_doctor = 0;
- $pat_resident = 0;
- if($stmt = $this->conn->prepare($query)){
- $stmt->bind_param('sssiidd', $name, $image, $descrip, $pat_doctor, $pat_resident, date("Ymd"), date("Ymd"));`
- function input_lab_results($name, $image, $descrip) {
- $query = "INSERT INTO pat_table (pat_name, pat_image, pat_descrip, pat_doctor, pat_resident, pat_create, pat_modify) VALUES (?, ?, ?, 0, 0, ?, ?)";
- if($stmt = $this->conn->prepare($query)){
- $stmt->bind_param('sssdd', $name, $image, $descrip, date("Ymd"), date("Ymd"));
- $stmt->execute();
- die();
- } else{
- die($this->conn->error);
- }
- }
- $query = "INSERT INTO pat_table (pat_name, pat_image, pat_descrip, pat_doctor, pat_resident, pat_create, pat_modify) VALUES (?, ?, ?, 0, 0, ?, ?)";
- if ($stmt = $this->conn->prepare($query)) {
- $stmt->execute(array($name, $image, $descrip, date("Ymd"), date("Ymd")));
- die();
- } else {
- die($this->conn->error);
- }
Add Comment
Please, Sign In to add comment