Does anyone know how I can display a new table for each result of a db search? Now I return one table with each result as a row.
Just put the <table> tag inside the loop rather than outside the loop. this will create a new table for each row. Note you also nee to end the table tag before the end of each iteration of the loop.