1. Don't use short tags. Use <?php instead.
fixed, unfortunately no difference.
2. It should return around 20 rows. And it prints out about 12 options. Please check that the numbers are exact instead of an estimated count. If the count is a little wrong in both counts it could easily be that it is in fact finished.
sorry for not being exact.. there are 19 rows that it should return. also, i was a bit off on the 12 being printed out.. at the moment it's actually 5 rows. and i say "at the moment" because it changes.. more at the end of this post
3. Do you get any error message? If so please post it here. Start the file with error_reporting(E_ALL) to get most messages.
no error messages are printed with that function called at the top of the code.
4. Your while-loop seems strange. Try this instead:
while ($line = $result->fetch_array( MYSQLI_ASSOC)) {
it is only in that format for debugging, it was in the format you have before i started dismantling it looking for any insights.
5. Use htmlspecialchars as is shown in the manual to handle single quotes as well:
htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES)
ok fixed that as well, still not working.
here is another bit of information that is equally boggling. when i put the line
echo "123456789";
right above the option echo, i get 4 rows returned. however, if this line is
echo "12345678";
then i get 5 rows returned (numbers 1-8 returns 4 rows, i haven't experimented very far past 9). so it's almost like thie bug is somehow related to output.
still very confused 😕 i hope what i've written is clear, and thank you again for taking the time to read :]
dylan