Friday 22 July 2016

php - Take data, find in table, get matching data, export




What I basically want to do is search a webpage for a piece of data (the XX.XX), always contained within:




 XX.XXg


I've read quite a bit about site scrapping and the such, but couldn't find the solution yet.



Now, I would have ranges set up somehow in a table, with matching numbers. I would want to see on which range that XX.XX is and take the data correspondent for the XX.XX.



To be more precise XX.XX would be a weight in grams and what it would be in the table would be the shipping price.



Way to do this?



Answer



what have you tried so far, friend?



I would suggest placing the data contained in your font tag to a variable, then querying your database with the content of the variable.



It would be best to place your code, so that we can help you better.


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...