Update: 2026-06-11 18:22:57

This commit is contained in:
Hamza-Ayed
2026-06-11 18:22:59 +03:00
parent c5170a88d2
commit 727068b668
629 changed files with 46050 additions and 46109 deletions

View File

@@ -0,0 +1,31 @@
<?php
include "../connect.php";
// Retrieve and sanitize input parameters
$phone = filterRequest("phone");
$note = filterRequest("note");
$editor = filterRequest("editor");
// SQL query to insert a new note into the notesForDriverService table
$sql = "INSERT INTO `notesForPassengerService` ( `phone`, `note`, `editor`)
VALUES (:phone, :note, :editor)";
// Prepare the SQL statement
$stmt = $con->prepare($sql);
// Bind the parameters
$stmt->bindParam(':phone', $phone);
$stmt->bindParam(':note', $note);
$stmt->bindParam(':editor', $editor);
$stmt->execute();
if ($stmt->rowCount() > 0) {
// Print a success message
printSuccess($message = "note inserted successfully");
} else {
// Print a failure message
printFailure($message = "Failed to insert note");
}
?>