require_once('classes/create_ep_class.php');
$filename = 'easypop.txt';
$ep = new create_ep($filename);
$query = mysql_query("select * from source");
while($p = mysql_fetch_assoc($query)){
$row = $easypop->create_empty_row_array();
$row['v_products_model'] = $p['code'];
$row['v_products_name_1'] = $p['name'];
$row['v_products_description_1'] = $p['description'];
$row['v_manufacturers_name'] = $p['manufacturer']);
$row['v_products_image'] = $p['image'];
//categories
$cats = explode('###', $p['catstring']);
foreach($cats as $k=>$v){
$num = $k+1;
$row['categories_name_' . $num] = $v;
}
}
|