Ok, so you don't have it in php for any reason? If you can use html instead of php I can easily show you how to make it work. If you need php I can probably still make it happen, but it will take longer.
OK Site has been changed to css layout for 3 months. from the day the new layout was uploaded I have lost what had been great SERPs. Page names are the same, still the same file name extensions, content basically identical (vis visible wording) but the ORDER of the info has been shuffled to have the main body of the pages up top in the coded view