Barand Posted August 16, 2016 Share Posted August 16, 2016 It sets the value after checking if it has changed $curname = $sn; pseudocode: set curname to empty while fetch next record if name value changed if we have a current value output the data for the current name endif set curname to new name value endif process the new record endwhile Quote Link to comment https://forums.phpfreaks.com/topic/285398-pivot-table-or-cross-tab-in-php-using-mysql-for-attendance/page/2/#findComment-1536232 Share on other sites More sharing options...
ttcc Posted August 16, 2016 Share Posted August 16, 2016 :happy-04: :happy-04: thank you. Now that's clear.... Quote Link to comment https://forums.phpfreaks.com/topic/285398-pivot-table-or-cross-tab-in-php-using-mysql-for-attendance/page/2/#findComment-1536234 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.