Insert XML into a HTML Styled Timetable
I'm very new to XML and using it within HTML Basically I am creating a Timetable for a school and the table is created first by defining some table headers e.g and then defining the rows for a given student.
to make things more clearer here is some of my source code: the first being for the tables headers
next the rows for a student
my xml data file looks mainly like so:
Generally I just wondered what is the best possible way to implement the XML into the time table ? specifically as I'm very new to using XML so any info/source code for this problem would be greatly appreciated or if anyone is able to have a look at my source. specifically a student should be able to see when their lesson starts and ends. I have looked at several examples though seem to hit a brick wall so to speak when trying to implement into my HTML.
What you are asking for cannot be done in HTML alone. Ideally you need to build a database back-end to hold the data, and an HTML front-end to input enquiries and present the results. You can link the front and back ends with PHP. Alternatively, if the amount of data is small, use PHP arrays to hold and manipulate the data, without a database back-end.
That, or find a CMS designed to manipulate the type of data you have.
Or, if your XML data files are well-formed, you can use one of the several ways of using PHP to parse and process them into your HTML pages directly as desired.
Search on "PHP XML parser" and you'll find some good information.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)