Enhance QR code generation and scanner UI: increase QR code size, improve scanner layout, and add video element styling

This commit is contained in:
vista-man
2025-04-10 20:15:56 +02:00
parent dac3e925c0
commit f4cc70f5bb
4 changed files with 21 additions and 7 deletions

View File

@@ -44,7 +44,7 @@ $qrCodes = []; // Array to store QR code URLs for email attachment
// Insert one ticket per row and generate QR codes
for ($i = 0; $i < $quantity; $i++) {
$ticket_id = bin2hex(random_bytes(16)); // Generate a 32-character unique ticket ID
$qrCodeUrl = "https://api.qrserver.com/v1/create-qr-code/?size=250x250&data=" . urlencode($ticket_id); // Generate QR code link
$qrCodeUrl = "https://api.qrserver.com/v1/create-qr-code/?size=500x500&data=" . urlencode($ticket_id); // Generate QR code link
$one_ticket_quantity = 1; // Each row represents one ticket
$stmt->bind_param("ssssss", $ticket_id, $name, $email, $category, $one_ticket_quantity, $qrCodeUrl);
if (!$stmt->execute()) {