which create all the options total (1 - 15)… I am trying to alter t\it by removing the numbers in the array.
so it would show the options available ( 1-13)
Here’s an alternative user interface, add the disabled attribute to the options that are not available. They would appear in the list of options, but are not selectable.
// use in_array() to disable the ones you don't want
for ($x = 1; $x <= $outlett_row['sum']; $x++)
{
$dis = in_array($x,$Array) ? ' disabled' : '';
echo "<option value='$x'$dis>$x</option>\n";
}