Код: Выделить всё
$id=$_POST['id'];
$type=$_POST['type'];
$JobNumber=htmlspecialchars($_POST['JobNumber']);
$jobName=htmlspecialchars($_POST['jobName']);
$jobAddress=htmlspecialchars($_POST['jobAddress']);
$MatDesc = htmlspecialchars($_POST['MatDesc']);
$Contact=htmlspecialchars($_POST['Contact']);
$ContactNo=$_POST['ContactNo'];
$MatListLoc=htmlspecialchars($_POST['MatListLoc']);
$Driver=htmlspecialchars($_POST['Driver']);
$jobStatus=htmlspecialchars($_POST['jobStatus']);
/*
$database = new database();
//$id=1;
$sql = "SELECT * FROM jobmat.details where relatedID=:id"; // Update this query according to your table name
$database->query($sql);
$database->bind(":id", $id);
$database->execute();
$rows = $database->object();
*/
//$rows = $result->fetch_all(MYSQLI_ASSOC); // Fetch rows as an associative array
//while ($row = $rows->fetch_assoc()) {echo $row."
";}
foreach($_POST as $daa){echo $daa ."
";}
Подробнее здесь: https://stackoverflow.com/questions/786 ... -in-a-form