|
Is your table actually named myproducts, or is it named expedia?
I didn't put an else or a die on the queries, so it won't tell you if it failed (for that I wrapped it in only processing if it was successful).
BTW, instead of a foreach within a while loop, you can use vprintf in order to just give it an array to work with (and the format string of course).
|