Nice question, yes I have the DB, I have also tried to print those values, $tz and $lt are not printing any values, The firstline itself displaying the error and then its not proceeding…
Printr $tz and $lt to see what/if it’s returning valid values… or add/remove lines one at a time to see which one is bombing. I’d remove the try/catch for this so you can line at a time check it.
Uhm… also, try using $row[‘name’] instead of $row[0] – you can never trust numbered indexes.
shouldnt actually matter in this case ($tzone is a string anyway), because PHP will unfurl the variable into it’s string form. If tzone was an array or object, you’d have problems.
That said, it’s better practice to do it without the quotes.
As far as the original problem goes… have you checked your database to make sure it’s actually got data in the name column?