RE: [PHP] Generating Sub Headings

2004-02-19 Thread Chris W. Parker
Nicole mailto:[EMAIL PROTECTED] on Thursday, February 19, 2004 10:28 AM said: I have data that looks like this: [snip] The second value is the year, I have have multiple files for the same year. What I want to do is output the values under Year sub headings. ok woh. that's way too much

Re: [PHP] Generating Sub Headings

2004-02-19 Thread Nicole
Sorry about all of the code. I do do what you say to do there. My year sub headings are changing correctly, it's the data that's printed under each heading that isn't correct. Nicole Chris W. Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Nicole mailto:[EMAIL PROTECTED]

Re: [PHP] Generating Sub Headings

2004-02-19 Thread Richard Davey
Hello Nicole, Thursday, February 19, 2004, 6:28:13 PM, you wrote: N And so on, always putting the right years and the right number of histories N below the year, but always listing the first history and nothing else. My N loop works if I don't have the while loop in there with the subheadings

Re: [PHP] Generating Sub Headings

2004-02-19 Thread Nicole
That's exactly it! I don't know why I didn't think about that. For anyone else reading this, I added $field = mysql_fetch_array($dbArray); above the line that reads $yeartitle = $years[year]; And now it works! Richard Davey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello