The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled PHP Code
Posted by: dfd | February 22, 2010 @ 4:30pm
PHP Code
[
Download
]
<?$k=0; foreach($cnt as $content){ $k++;?> <? $content['name'] = str_replace('�','x',$content['name']); $imp['store'] = 'admin'; $imp['websites'] = 'base'; $imp['attribute_set'] = 'Posteljnine'; $imp['type'] = 'simple'; $imp['sku'] = $content['field10']; $imp['name'] = $content['name']; $imp['url_key'] = $content['furl']; $imp['url_path'] = $content['furl'].'.html'; $imp['price'] = $content['number1']; $imp['special_price'] = $content['number1'] - (($content['number1'] * $content['number2']) / 100); $imp['weight'] = '1'; if($content['published'] == 1) $imp['status'] = 'Enabled'; else $imp['status'] = 'Disabled'; $imp['special_from_date'] = '01.01.10'; $imp['tax_class_id'] = 'Produkt tax'; $imp['visibility'] = 'Catalog, Search'; ?> <?if($k==1){?><pre><?print_r($content);?></pre><?}?> <?if($k==1){?><div><?$i=0; foreach($imp as $k =>$v){ if(++$i!=1) echo ','; echo '"'.$k.'"'; }?></div><?}?> <div><?$i=0; foreach($imp as $k =>$v){ if(++$i!=1) echo ','; echo '"'.$v.'"'; }?></div> <?}?>
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.48 / 8
67 Votes
http://codebin.yi.org/515
page generated in 0.00 seconds