Answer the question
In order to leave comments, you need to log in
How to parse data from table to database?
Hello forumites. There was a problem. I do not know how to parse information from a table to write to the database.
There is a table, for example, ( vstup.info/2015/174/i2015i174p212780.html ) which stores a list of surnames, scores, and so on. I need to convert this list into sql query. How to do it?
I tried to use the simple html dom library for this purpose, but nothing happens. HZ how to enter the data that is in the line into the database. Maybe one of you has solved this problem. Help with an example. Thanks in advance)
Answer the question
In order to leave comments, you need to log in
Something like this:
regexr.com/3bdp5
regexr.com/3bdp8
Now cut the td into variables and then:
INSERT INTO `".$table."` SET `name`='".$name."', `summ`='".$summ."'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question