I have a html file that has invoice details
I would like to know is there a way that I can retrieve only the invoice numbers and store it separately in my sql database using php?
<p>Invoice ID: 0201</p>
<p>MID : Q987</p>
<p>Desciption: Solid Concrete Blocks</p>
<p>Qty: 7478 Blocks </p>
<p> </p>
<p>Invoice ID: 0324</p>
<p>MID : Q443</p>
<p>Desciption: Window Slides with Chrome </p>
<p>Qty: 33 Units </p>
You can try something like this to extract all the invoice numbers:
Output:
Once you have extracted all the invoice numbers you can insert them in a database table using something like: