I am querying a URL for columns YEAR, RATING and I want to insert those two into a database. E.g.
So, I am writing script like:
$url = 'BLA BLA ';
$data = file_get_contents($url);
$dom = new Zend_Dom_Query($data);
$year = $dom->query('.secondaryInfo');
$rating = $dom->query('.ratingColumn');
How to insert both of them in a database???
for ( .... What do I have to write here?)
$parse = new Application_Model_Parse();
'rating' => What do I have to write here?
'year' => What do I have to write here?
Any help will be useful.
For programming and general questions on Zend Framework
1 post • Page 1 of 1