Sincere Posted April 13, 2008 Share Posted April 13, 2008 hello update pafiledb_cat set files_nb = (select file_catid from pafiledb_files WHERE pafiledb_files.file_catid=cat_id) did not work. how do you find out the number of rows in a table with cat_id=n ??? Link to comment https://forums.phpfreaks.com/topic/100940-solved-how-do-you-count-the-number-of-rows-with-id1/ Share on other sites More sharing options...
mwasif Posted April 13, 2008 Share Posted April 13, 2008 This will return number of rows from a table against a specific category. SELECT COUNT(*) FROM table_name WHERE cat_id=n Replace table_name with your actual table name and n with category id. Link to comment https://forums.phpfreaks.com/topic/100940-solved-how-do-you-count-the-number-of-rows-with-id1/#findComment-516189 Share on other sites More sharing options...
Sincere Posted April 13, 2008 Author Share Posted April 13, 2008 This will return number of rows from a table against a specific category. SELECT COUNT(*) FROM table_name WHERE cat_id=n Replace table_name with your actual table name and n with category id. shukraaaaaaaaaaaaaaan thank you thank you thank you Link to comment https://forums.phpfreaks.com/topic/100940-solved-how-do-you-count-the-number-of-rows-with-id1/#findComment-516195 Share on other sites More sharing options...
mwasif Posted April 13, 2008 Share Posted April 13, 2008 Jazeeran Link to comment https://forums.phpfreaks.com/topic/100940-solved-how-do-you-count-the-number-of-rows-with-id1/#findComment-516237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.