Added ability to cope with up to 100 options in quantification selections

This commit is contained in:
Peter Edmond 2025-06-13 21:31:35 +01:00
parent aaee1758c3
commit 09172a24e6

2
db.php
View File

@ -117,7 +117,7 @@ $stmt = $pdo->prepare("
$value = null;
// Handle numeric between -3 and +3
if (is_numeric($val) && $val >= -3 && $val <= 3) {
if (is_numeric($val) && $val >= -3 && $val <= 100) {
$value = (int) $val;
} else {
$text = substr($val, 0, 255); // enforce VARCHAR(255) limit