Jump to content

convert html text to mysql db


vai_ron

Recommended Posts

hi, can anyone help me on how to extract a text from html and saves it to a database using mysql, im just new to php so i dont have a clue on how to do it,
for example i have an html named data.html containing text like:
  id_no: 12345
  name: hdagh
  date: 00/00/00
  time: 1:00 p.m.
and etc...
so how do i save it to mysql?

thanks!!!

Link to comment
https://forums.phpfreaks.com/topic/33311-convert-html-text-to-mysql-db/
Share on other sites

do you know anything about php? Not meaning that in an offensive way.  If you don't (and I suspect you don't, because most of what you wish to do here is beginner stuff), you're going to have to start with the basics, before undergoing a project such as that.  Once you learn the basics (like syntax, basic sql, etc..) then you can move up to doing some regex to extract the data from the site and put it in your db.  You have to learn to crawl before you can learn to walk.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.