@NogDogMay 01.2010 — #Probably the simplest way is to use fputcsv() and create a CSV file, which is easily readable by any spreadsheet program. If you want to create a true .xls file, you want to use one of the available 3rd-party scripts/classes to do it, such as [url=http://phpexcel.codeplex.com/]PHPExcel[/url]. (I can't vouch for this one, it's just the first promising-looking one I found in a quick search.)
I will have to spend some time on this, seems more difficult than I first thought.
The file is already a XLS file and I want to be able to insert the data straight in to the existing XLS sheet so that when I do open it up, all the data needed or inserted is present.
The alternative is if the information can be retrieved by the spreadsheet from a MySQL database.
I would prefer the first option because I don't have excel myself but would want to be able to insert the information so I then can open the file at work to print off.
@rootauthorMay 02.2010 — #Ok, well it appears that you have to install these things and I do not have that level of access in the server as the server is on a web hosting account.