I have a curl script which reads the data from a remote source. Below is the current code:
function download_page($path){
$ch = curl_init();
curl_set
Maybe something like this?
foreach($oXML->results->item->item as $oEntry){
$inserts[] = "(". implode(', ', array ($oEntry->firstname, $oEntry->lastname, date("Y-m-d H:i:s") ) ) .")";
}
$insert_query = mysql_query("INSERT INTO tbl_item (first_name, last_name, date_added) VALUES ".implode(', ', $inserts));