MYSQL Join table rows and use for php array -


i have multiple tables on specific database , each table similar each other.

table:

 id     series     folder   1      naruto     670   2      naruto     671   3      naruto     672 

each table has exact setup. series name changes. want pick 1 entry series row , highest number folder row. use data make php array , use json data. here code:

'select naruto.max(klasor), naruto.seri, one_piece.max(klasor), one_piece.seri, bleach.max(klasor), bleach.seri `naruto` inner join `one_piece` inner join `bleach on` limit 1' 

use group by clause like

select id,series,max(folder) max_folder table1 group series 

Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -