¡@

Home 

php Programming Glossary: grades

Select MYSQL rows but rows into columns and column into rows

http://stackoverflow.com/questions/3288014/select-mysql-rows-but-rows-into-columns-and-column-into-rows

here's how to do it I took the liberty of naming the table grades General Idea To create a union of different queries and execute.. line we need a query like SELECT 'Name' SELECT Name FROM grades LIMIT 0 1 SELECT Name FROM grades LIMIT 1 1 SELECT Name FROM.. 'Name' SELECT Name FROM grades LIMIT 0 1 SELECT Name FROM grades LIMIT 1 1 SELECT Name FROM grades LIMIT 2 1 ... Using the same..