added more customer intel. Response message from customer order and email

This commit is contained in:
2026-10-20 10:15:30 +03:00
parent c41e56d382
commit 9634551a68
49 changed files with 50 additions and 17 deletions
+9 -5
View File
@@ -13,7 +13,7 @@ $stmt = $mysqli ->prepare("SELECT usersname FROM users WHERE idusers = ? AND use
$stmt -> bind_param("ss",$id,$username);
$stmt -> execute();
$result = $stmt->get_result();
$stmt->store_result();
//$stmt->store_result();
@@ -63,7 +63,7 @@ exit;}
</div>
</header>
<body >
<p id="msg"></p>
<?php foreach($images as $picture): ?>
<div class="imagesDiv" onclick='add("<?php echo($picture["imagesname"]) ?>", this)'>
<img style=""src="<?php echo($picture["imagesurls"]); ?>" alt="" >
@@ -108,7 +108,10 @@ if (arr.includes(name)) {
}
function send(){
var dataToSend = "variableName=" + arr;
var dataToSend = "variableName=" + arr + "&user="+<?php echo($id); ?>;
//var customer = ;
//console.log(customer);
console.log(dataToSend);
// Prepare the data to send
var xhr = new XMLHttpRequest();
@@ -128,7 +131,8 @@ function send(){
// Check if the request was successful
console.log(xhr.responseText);
let elemMsg = document.getElementById("msg");
elemMsg.innerHTML = xhr.responseText;
// Output the response from the PHP script
} else {
@@ -144,7 +148,7 @@ function send(){
}
}
;
// const test = {dataToSend , customer};
xhr.send(dataToSend);
}
</script>