Jump to content

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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.