Why would you ever upload data as an html file? That sounds like one of the worst file types to store data in.. Why not use csv or even xlsx?
Mar 7, 2022
8
Level 1
how parse html in server
hello guys, we want to create a parser which looking to elements value and separate the special data from that table and then store to DB .
for example we have a form and we upload a html file which include a table and we expect the data in special td cells store to the DB .
so could somebody please tell me how that can possible ? how I can read the td cell value and is there any tool in Laravel for this ?
Level 102
@dev.khosromanesh Ok. Sounds like you need to do some DOM parsing then. Luckily php has a build in dom parser called DOMDocument
1 like
Please or to participate in this conversation.