javascript - Is it possible to Filter / Seperate Data from MySQL in PHP from a rows content? -
what trying achieve way filter results table values in a given row.
for example: if have table school times multiple schools. want data table , have separate schools.
so best way of doing on webpage data can separated headers different fields separate schools header of school names?
i guess first of extend sql query group function or @ least order function. after have called group change in php code in following example code:
$school = ''; foreach ($data $row) { // here 's group change if ($school != $row['school_name'])) { $school = $row['school_name']; // header output echo $row['school_name']; } // output of other data echo $row['blah']; }
Comments
Post a Comment