Not printing while loop statements.
This is what you should expect if your query returns no matching rows. Use a query which you know will return a dataset first.
As you are now using placeholders (which is good) consider preparing the query outside the foreach loop. It makes no sense to re-prepare the exact same query over and over.
In reply to Re^3: Code flow not going to while loop
by hippo
in thread Code flow not going to while loop
by dipit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |