MrBillybob Posted August 17, 2007 Share Posted August 17, 2007 i want to select all of the data for each and every user separately using a query..is this possible? user t etc a 4 xy a 13 gg b 5 xx a 43 df c 2 xy and then i wanna get all of the data from user a, but i dont know that a == a i need to be able go throughthe database and collect all the data from a then find the next user name and get data for it...if this doesn make sense ask for more info Quote Link to comment https://forums.phpfreaks.com/topic/65369-solved-mysql-query-help/ Share on other sites More sharing options...
beboo002 Posted August 17, 2007 Share Posted August 17, 2007 select * from tablename; get all the data from table and select columnname from table name where columnname = 'a'; hope its help u Quote Link to comment https://forums.phpfreaks.com/topic/65369-solved-mysql-query-help/#findComment-326449 Share on other sites More sharing options...
MrBillybob Posted August 17, 2007 Author Share Posted August 17, 2007 well beboo i want to out put totals for a so i only want to get its data once then get b's data but that will get a data then a data then b...a...c Quote Link to comment https://forums.phpfreaks.com/topic/65369-solved-mysql-query-help/#findComment-326459 Share on other sites More sharing options...
beboo002 Posted August 17, 2007 Share Posted August 17, 2007 select distinct(column name) from table name remove duplicacy and select username from table name orderby t; Quote Link to comment https://forums.phpfreaks.com/topic/65369-solved-mysql-query-help/#findComment-326488 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.