Hi there
I have only been dabbling in PHP for around a month and my only other experience in this sort of stuff is using ASP.NET. I am converting our companies static website into a more manageable (for me, as I will be the one updating it), streamlined PHP version. Everything is going fine apart from the question I am about to ask you.
I have finished the staff profile pages which has cut out twenty odd static pages and would like to do the same with our news and events page. At present I have a number of Word documents that staff make and at present the only way to do this is to code each page. I have set up a news table in MySQL and and a foreign key linking it to the staff table which all works fine. The only trouble is I receive some Word documents with all sorts of formatting, bold text here, underlining here etc and was wondering whats the best way to insert that data?
I have read up on htmlentities() and while that has worked great for things like pound signs and quotations there doesn't seem to be one for bold, italic, bullet points etc..
What is the best way to do this? I understand for some I could simply add the HTML tags in the textpad but I imagine this is a bit of a scummy way of doing this. Am I better creating some sort of input page for this data as the way I am inserting data into MySQL at present is a bit primitive. Any help appreciated.
I have only been dabbling in PHP for around a month and my only other experience in this sort of stuff is using ASP.NET. I am converting our companies static website into a more manageable (for me, as I will be the one updating it), streamlined PHP version. Everything is going fine apart from the question I am about to ask you.
I have finished the staff profile pages which has cut out twenty odd static pages and would like to do the same with our news and events page. At present I have a number of Word documents that staff make and at present the only way to do this is to code each page. I have set up a news table in MySQL and and a foreign key linking it to the staff table which all works fine. The only trouble is I receive some Word documents with all sorts of formatting, bold text here, underlining here etc and was wondering whats the best way to insert that data?
I have read up on htmlentities() and while that has worked great for things like pound signs and quotations there doesn't seem to be one for bold, italic, bullet points etc..
What is the best way to do this? I understand for some I could simply add the HTML tags in the textpad but I imagine this is a bit of a scummy way of doing this. Am I better creating some sort of input page for this data as the way I am inserting data into MySQL at present is a bit primitive. Any help appreciated.