vai_ron Posted January 8, 2007 Share Posted January 8, 2007 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!!! Quote Link to comment https://forums.phpfreaks.com/topic/33311-convert-html-text-to-mysql-db/ Share on other sites More sharing options...
kam_uoc Posted January 8, 2007 Share Posted January 8, 2007 if you use html form components(input types) you can send it to database. Quote Link to comment https://forums.phpfreaks.com/topic/33311-convert-html-text-to-mysql-db/#findComment-155650 Share on other sites More sharing options...
vai_ron Posted January 8, 2007 Author Share Posted January 8, 2007 hi, thanks for replying hehe...i'll use it in an existing site that has a lot of data or records on itwhat i needed to do is extract those data and import it to a database Quote Link to comment https://forums.phpfreaks.com/topic/33311-convert-html-text-to-mysql-db/#findComment-155664 Share on other sites More sharing options...
.josh Posted January 8, 2007 Share Posted January 8, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/33311-convert-html-text-to-mysql-db/#findComment-155667 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.