in reply to Re^2: Slow response on DBI MySQL query
in thread Slow response on DBI MySQL query
sorry for my lack of knowledge.
No reason to be sorry about not knowing. Ignorance is not an excuse (to receive pardon) though it is an excellent reason to ask a question!
Change $lip to a question mark: WHERE ? BETWEEN ... Then, when execute()ing the query, pass the parameter. If in a loop to run multiple times, for example, the prepare would exist before the loop, the execute (and fetch) within it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Slow response on DBI MySQL query
by Fortificus (Novice) on Mar 24, 2015 at 14:49 UTC | |
by chacham (Prior) on Mar 24, 2015 at 15:28 UTC |