We currently have a php code that retrieves records from the database and displays them to the screen.
This works fine.
Recently, we have been asked to pull up a file sitting on a directory and display its content to the screen.
For instance, let's say for a second that we have 4 fields
ID fName Lname Title More
1 John Doe Mr. Link
and a header with links to files on file folder.
What we would like to do is once the records are dispalyed, the user will then click on the Link under the header "More" header.
Once this link is clicked, then a flag (another field on our db called approved?) is activated.
If approvedFlag is yes, the link will open a file from folder A.
If the approvedFlag is no, the link will open a file stored on folder B on our directory.
My question is, being that I am new to php, can someone tell me if it is possible to pull a file from a folder and display its content. The file is likely to be an excel file.
Sorry for my rambling and hope that I made some sense.
Thanks in advance
This works fine.
Recently, we have been asked to pull up a file sitting on a directory and display its content to the screen.
For instance, let's say for a second that we have 4 fields
ID fName Lname Title More
1 John Doe Mr. Link
and a header with links to files on file folder.
What we would like to do is once the records are dispalyed, the user will then click on the Link under the header "More" header.
Once this link is clicked, then a flag (another field on our db called approved?) is activated.
If approvedFlag is yes, the link will open a file from folder A.
If the approvedFlag is no, the link will open a file stored on folder B on our directory.
My question is, being that I am new to php, can someone tell me if it is possible to pull a file from a folder and display its content. The file is likely to be an excel file.
Sorry for my rambling and hope that I made some sense.
Thanks in advance