Forum Moderators: coopster

Message Too Old, No Replies

Getting data from HTML source to SQL by PHP

         

Twixly

8:42 am on Sep 12, 2005 (gmt 0)

10+ Year Member



Hey,

been diggin around trying to find a smart way to do this..

I got a static HTML page with some data I wanna insert it into mySQL. I ended up writing my own thing.. where I search the source and put it to sql in php... but it does not work 100%, it sometimes add weird blank spaces and such..

so I wonder if theres any existing tool / script / php source to do this that you guys might know of?

Saves me time since I dont know what its called so I dont know what to google etc.

Twixly

8:44 am on Sep 12, 2005 (gmt 0)

10+ Year Member



oh HTML pages I talk about looks like this sort of :

Name : "random name here"
Location : "whatever here"
Age : "something"

and sometimes some field might be blank, maybe there´s no known location for someone etc..

so its not really same all the time :(

(note this is only an example I am not trying to setup a online dating service hehe)

Twixly

8:18 am on Sep 14, 2005 (gmt 0)

10+ Year Member



no ideas? :(

jatar_k

3:05 pm on Sep 14, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



do you mean getting information from a form?