Making widget.js

This commit is contained in:
2025-12-18 15:56:59 +01:00
parent 58e1112bd2
commit 8b90b0a704
4 changed files with 437 additions and 3 deletions

View File

@@ -3,7 +3,6 @@ require __DIR__ . '/../db.php';
if ($_POST) {
// === Dodajemy miejsce ===
$stmt = $pdo->prepare("
INSERT INTO salon_places (name, woj)
@@ -13,13 +12,12 @@ if ($_POST) {
$_POST['name'],
$_POST['woj'] ?: null
]);
$placeId = $pdo->lastInsertId();
// === Dodajemy sklep (shop) ===
$stmt = $pdo->prepare("
INSERT INTO shops (place_id, address, open_hours, url_address, url_shop, lat, lng)
VALUES (?, ?, ?, ?, ?, ?)
VALUES (?, ?, ?, ?, ?, ?, ?)
");
$stmt->execute([
$placeId,