I wrote my own blog system, and everything was coded by myself. Now I want to save my own small articles to the database, and I plan to fix it in js + php + mysql, I don't know how to save articles. My idea is to directly use innHTML to get all the labels and text, and then use...
I wrote my own blog system, and everything was coded by myself. Now I want to save my own small articles to the database, and I plan to fix it in js + php + mysql, I don't know how to save articles. My idea is to directly use innHTML to get all the labels and texts, call php via ajax, and store them in mysql. You can call them directly during the call, I don't know if this is appropriate... I hope you can give me some suggestions.
Current problems: There is a ">" in my article. When I upload the article to php and return it back, I find it in the original article ">" There is nothing behind it. It feels like a php problem, php Code such:
Baidu has a lot of resources, but does not know what keywords to search. Before that, I came into contact with entities and things. How can I do this? Please give me some advice or have some suggestions on Article storage. Thank you!
Reply content:
I wrote my own blog system, and everything was coded by myself. Now I want to save my own small articles to the database, and I plan to fix it in js + php + mysql, I don't know how to save articles. My idea is to directly use innHTML to get all the labels and texts, call php via ajax, and store them in mysql. You can call them directly during the call, I don't know if this is appropriate... I hope you can give me some suggestions.
Current problems: There is a ">" in my article. When I upload the article to php and return it back, I find it in the original article ">" There is nothing behind it. It feels like a php problem, php Code such:
Baidu has a lot of resources, but does not know what keywords to search. Before that, I came into contact with entities and things. How can I do this? Please give me some advice or have some suggestions on Article storage. Thank you!
Http://tool.oschina.net/commons? Type = 2
Available>
To replace your>
The html content is escaped and then stored for query.