In addition to comments already made, you also want to prepare your statement outside of the loop. You are effectively negating the performance benefit of running the prepare command.
--MidLifeXis
In reply to Re^3: Can insert but not select
by MidLifeXis
in thread Can insert but not select
by zoophagous
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |