dayang Posted May 15, 2009 Share Posted May 15, 2009 how to calculate total data in row.example i have 10 data in 1 table and i want to view the value "10" at interface. Link to comment https://forums.phpfreaks.com/topic/158218-calculate-total-data/ Share on other sites More sharing options...
starphp Posted May 15, 2009 Share Posted May 15, 2009 Use the count() .. SELECT COUNT(*) as count FROM YOUR_TABLE_NAME; If needed, please add WHERE clause or refer to site.. for the syntax and more details about the COUNT() Link to comment https://forums.phpfreaks.com/topic/158218-calculate-total-data/#findComment-834529 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.