I would like to make a table with different numbers of cols with PHP and with data from mysql.
I got very stuck because i don't know how to do that with For and foreach. I am so lost.
I have in my MYSQL database 40 datas entries. I want to create a php script with the result of all of each data I take from my mysql. The first while-loop mysqlfetch array appear in 1 colomn, the 2nd one in 2 columns, the third one 2 colomns, the Four one 1 colomn etc.. In continue with the same structure all over again. Instead to make it appears one colomns by 1 colomns. It's 1 colomn, 2 colomns, 2 colomns, 1 colomns
thank you so much !