November 9th, 2012, 01:10 AM
How to replace string/ word in parsing html with php?
i have table like
<table id="data" class="outer">
i have to parse this to give out put for more than 100 but i am unable to get how value for "Date" "12-09-12" can be replaced with new value from database value.
please give me a small example
$html = new simple_html_dom();
$items = $html->find('Date');
can anyone help me ?
November 9th, 2012, 03:51 AM
So are you wanting to turn 20-10-12 into 2012-10-20?
Put your hand on a hot stove for a minute, and it seems like an hour.
Sit with a pretty girl for an hour and it seems like a minute.
- Albert Einstein
November 9th, 2012, 07:09 PM
Why are you getting the entire HTML as a string. Please explain exactly what you are doing and why. There is probably a better way to get that table info.