in reply to Re: Re: foreach within a foreach
in thread foreach within a foreach
Efficiency. If you use placeholders, you only need to
prepare() the statement once (at which point
the db engine analyzes it and figures out how to most
efficiently process the query) and can then execute it
repeatedly, passing in different parameters each time.
Without placeholders, the query has to be re-prepared each
time it is executed.