I have code that is something like this:
And it gives me results are such as:Code:$projects = mysql_query($select . $from . $where. $order); while ($project = mysql_fetch_array($projects)) { $PY = $project["PY"]; $PN = $project["PN"]; $Title = $project["Title"]; }
PY(1) PN(1) Title(1)
PY(1) PN(1) Title(2) ...and so on
But what I want is if the PY is the same, then all the different PN's or Title's are grouped in the same output like this:
PY(1) PN(1) Title(1) Tilte (2) ...and so on
I know that this can be done, but I am having a heck of a time searching for an example on how to do this. For one thing, I do can't figure a way to clearly discribe this.







Bookmarks