Hi

How will insert the string data into the database?My code is

<?php
// example of how to modify HTML contents
include_once('simple_html_dom.php');
$submit_url=
'http://yellowpages.sulekha.com/agra/abhay-integrated-technology-ltd-sadar-bazar-agra_contact-address.htm?business=pst';

$html = file_get_html($submit_url);
foreach($html->find('img') as $e)
$e->outertext = '';

// replace all input
foreach($html->find('input') as $e)
$e->outertext = '[INPUT]';

foreach($html->find('div#div.core_add') as $e)
echo $e->innertext . '<br>';


foreach($html->find('span.myClass') as $e)
echo $e->outertext . '<br>';


foreach($html->find('span[span]') as $e)
$e->outertext = 'span';
?>

Using this code I will get the content of that http. How will insert this data into database? Please help me.Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.