kbloem Posted July 18, 2013 Share Posted July 18, 2013 Hi, i have a supplier that gave me an wsdl link. To get productinfo they gave me this description. I had to translate it so i'm sorry if its not clear... Use productitemsearch to get data for one product. Call a function through an array with 1 key named input. This key holds an array with several array options.Important is that cat_id and item_id need to be sent, the rest is optional. cat_id=Int Item_id=Int Now, i am a complete noob with php but what i have is this. <?phprequire_once('SoapClientAuth.php');ini_set("soap.wsdl_cache_enabled", "0");#- verbinden met WSDL document$wsdl = "http://www.somesite.nl/api/v2/wsdl/products.wsdl"; $client = new SoapClientAuth($wsdl, array('login' => $Username,'password' => $Password)); function ProductItemSearch($gametitel){ $gamedata = $client->ProductItemSearch(array ('input')); } echo $gamedata;?> Don't laugh at me. I am new at this I hope someone can help. Once i get one value and a correct connection i should get on my way. Right now i get an empty page. Quote Link to comment Share on other sites More sharing options...
kbloem Posted July 19, 2013 Author Share Posted July 19, 2013 Anyone? Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted July 19, 2013 Share Posted July 19, 2013 you could try $gamedata = $client->ProductItemSearch(array ('input'=>'something_to_search_for')); as you currently have an array that looks like this :array[1]( [0] =>'input') so you don't meet the requirement. failing that you will need to provide more information. Quote Link to comment Share on other sites More sharing options...
kbloem Posted July 19, 2013 Author Share Posted July 19, 2013 (edited) I've done it different now but still an issue... <?php date_default_timezone_set('Europe/Amsterdam');ini_set("soap.wsdl_cache_enabled", "0");#- verbinden met WSDL $client = new SoapClient("http://www.url.nl/api/v2/wsdl/products.wsdl", array('login'=> "username", 'password'=> "wachtwoord"));print_r( $client->__getFunctions() );?><br /><br /><br /><?print_r( $client->__getTypes() ); class Product { public $cat_id; public $item_id; public $title; public $minprice; public $image_url; public $direct_link;} function productitemsearch( $item_id ) { $product = new Product(); $product->cat_id = $cat_id; $product->item_id = $item_id; $product->title = $title; $product->minprice = $minprice; return $product; } $product = $client->productitemsearch("68899");echo ($product); ?> Fatal error: Uncaught SoapFault exception: [sERVER] [errorcode: 2] IP adres not in trusted list (errornr: 7828) in /home/gamesite/wsdl/index2.php:41 Stack trace: #0 /home/gamesite/wsdl/index2.php(41): SoapClient->__call('productitemsear...', Array) #1 /home/gamesite/wsdl/index2.php(41): SoapClient->productitemsearch('68899') #2 {main} thrown in /home/gamesite/wsdl/index2.php on line 41 Edited July 19, 2013 by kbloem Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted July 19, 2013 Share Posted July 19, 2013 that's the server telling you that your servers IP is not on the "authorised to do this kind of thing" list. You should have been given a sandbox server to connect to for development, once this is complete you will need to register the IP of the server running the completed script with the people who you are trying to access the live data from so that they can authorise it. Quote Link to comment Share on other sites More sharing options...
kbloem Posted July 24, 2013 Author Share Posted July 24, 2013 Thanks, there was a different IP talking to de server, i guess a gateway. They whitelisted that and now it seems to work. But my code does not. Below is de code i have now... <?php//require_once('SoapClientAuth.php');date_default_timezone_set('Europe/Amsterdam');ini_set("soap.wsdl_cache_enabled", "0");#- verbinden met WSDL$client = new SoapClient("http://www.xxx.nl/api/v2/wsdl/products.wsdl", array('login'=> "user", 'password'=> "passwd"));//$wsdl = "http://www.xxx.nl/api/v2/wsdl/products.wsdl"; //$client = new SoapClientAuth($wsdl,// array('login' => $Username,'password' => $Password, 'trace'=>1)); print_r( $client->__getFunctions() );?><br /><br /><br /><?print_r( $client->__getTypes() ); class Product { public $cat_id; public $item_id; public $title; public $minprice; public $image_url; public $direct_link;} function productitemsearch( $item_id ) { $product = new Product(); $product->cat_id = $cat_id; $product->item_id = $item_id; $product->title = $title; $product->minprice = $minprice; return $product; } $product = $client->productitemsearch("68899");echo ($product);?> i get the following error... Fatal error: Uncaught SoapFault exception: [sOAP-ENV:Server] SOAP-ERROR: Encoding: object has no 'item_id' property in /home/indexxx/public_html/gamesite/wsdl/index2.php:41 Stack trace: #0 /home/indexxx/public_html/gamesite/wsdl/index2.php(41): SoapClient->__call('productitemsear...', Array) #1 /home/indexxx/public_html/gamesite/wsdl/index2.php(41): SoapClient->productitemsearch('68899') #2 {main} thrown in /home/indexxx/public_html/gamesite/wsdl/index2.php on line 41 Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted July 24, 2013 Share Posted July 24, 2013 can you show us the output of print_r( $client->__getFunctions() ); ?><br /><br /><br /><? print_r( $client->__getTypes() ); Quote Link to comment Share on other sites More sharing options...
kbloem Posted July 24, 2013 Author Share Posted July 24, 2013 Wel i actually got a bit further... This is my code now... <?php//require_once('SoapClientAuth.php');date_default_timezone_set('Europe/Amsterdam');ini_set("soap.wsdl_cache_enabled", "0");#- verbinden met WSDL$client = new SoapClient("http://www.domain.nl/api/v2/wsdl/products.wsdl", array('login'=> "", 'password'=> "")); $productitemsearch_args = array('input' => array( 'cat_id' => 4, 'item_id' => 71267 , 'shopinfosort'=> "PRICE", 'shopinfo'=>"TRUE" ));$productitemsearch= $client->ProductItemSearch( $productitemsearch_args ); print_r ($productitemsearch);?> It gives me the following output wich i now have to try and get in a html table stdClass Object ( [ProductItemSearchResult] => stdClass Object ( [searchtime] => 0.0233888626099 [productdata] => stdClass Object ( [item_id] => 71267 [cat_id] => 4 [title] => Last of Us - PlayStation 3 [properties] => Game ▪ PlayStation 3 ▪ PEGI: 18 ▪ 2013 [minprice] => 4999 [image_url] => http://hwimages2.beslist.net/beslist-images/4/LARGE/000/000/071/71267.png [direct_link] => http://www.beslist.nl/cddvdrom/d0000071267/The_Last_of_Us_-_PlayStation_3.html [shops] => stdClass Object ( [shops] => Array ( [0] => stdClass Object ( [shop_id] => 19 [shopname] => Wehkamp.nl [shoplogo] => http://hwimages.beslist.net/beslist-images/shop_images/LARGE/19.png [levertijd] => 3 - 4 werkdagen [price] => 5669 [postage] => 195 [cpc_type] => PREMIUM [producturl] => http://www.beslist.nl/load_product.php?params=ZIZXUb6eBwaXaRlI5djBtJYYeB4qaIRwnLHQZO4WmFtE3xc9i4Q2XJr8Yb2slYQEUQldOA0HoEh3WVMtt/RyTPtLQHg9p-0PDIURMva3Rg6mduXxIRfjoI0NqYDGo8C822hSaNgbdJ7NiTe5/4cMeMVrax-tMidPfYHU2ZoKqZk= ) [1] => stdClass Object ( [shop_id] => 37 [shopname] => Nedgame.nl [shoplogo] => http://hwimages.beslist.net/beslist-images/shop_images/LARGE/37.png [levertijd] => Op werkdagen voor 16:00 uur besteld, volgende dag in huis [price] => 5900 [postage] => 195 [cpc_type] => PREMIUM [producturl] => http://www.beslist.nl/load_product.php?params=Fr/IEmELxYcn3r21EitWakky6Kf5JSUvYr4aSEhhQY5W/g4H0m5iBiyvcwP0DOtDNeKvBV79b4L5NIkkFC2PWsA-XrmkEF7Ahml6aoRAEKwuEWwZcwOt4CTE36jAtfRWirUDesV23UJPqI5ZSunaNwn1eVVKs700H-7N8VLE5AU= ) [2] => stdClass Object ( [shop_id] => 1 [shopname] => bol.com [shoplogo] => http://hwimages.beslist.net/beslist-images/shop_images/LARGE/1.png [levertijd] => Op werkdagen voor 23:00 uur besteld, volgende dag in huis [price] => 6499 [postage] => 0 [cpc_type] => PREMIUM [producturl] => http://www.beslist.nl/load_product.php?params=cq6ZgIhOiH/5a/abt-ZthzWPLvIpQ/Zg5NsoEXrgobK2Ujzv0IYsHCkxCKUKHb1wdWWtQ8ucEqYOESfW3o2LePvPRFKLnthk/01TF2HPCyJhV7rrHIGY/Nwa9-rwiSeIw2WarSGoMakGeCwEwMEROJWEeOTnjF4JfjVF0Psd/L8= ) [3] => stdClass Object ( [shop_id] => 2369 [shopname] => Dixons.nl [shoplogo] => http://hwimages.beslist.net/beslist-images/shop_images/LARGE/2369.png [levertijd] => Op werkdagen voor 23:30 uur besteld, volgende dag in huis [price] => 6499 [postage] => 0 [cpc_type] => PREMIUM [producturl] => http://www.beslist.nl/load_product.php?params=STSjtnkoVrREEGwQy0Gn9tnbyREb01xFJ0q2QJ4W2D5wyZED7iG/CWgwRhQD460kcKaR7VduiWst-K6A3BJgwS3Lov6pQpUQ3aWoDJDx6t29pCPfcE/2qhabFn3IfkWwvWqDXd2VEdfM4VFmoITqBMj7SuimWyb6ufPbhJqXq1U= ) [4] => stdClass Object ( [shop_id] => 596 [shopname] => MyCom.nl [shoplogo] => http://hwimages.beslist.net/beslist-images/shop_images/LARGE/596.png [levertijd] => Op werkdagen voor 23:30 uur besteld, volgende dag in huis [price] => 6499 [postage] => 0 [cpc_type] => PREMIUM [producturl] => http://www.beslist.nl/load_product.php?params=J-vuhA3sFjuRjgM9p5UxvO1q4ea4RyUljrJk14WIjF1GXKsGmiACX/6FpN5x8y43SNm5QebpEg2xcgaz8NGxMXkhsv7nJSmRdbQkCwd0Kco6SLcKeMisWoTfOtd5I4yA/A5VkjAUYjIhLra4SsqWH4mjnUWzOinO9bEl1tCH3q0= ) [5] => stdClass Object ( [shop_id] => 5077 [shopname] => Intertoys.nl [shoplogo] => http://hwimages.beslist.net/beslist-images/shop_images/LARGE/5077.png [levertijd] => 1 - 3 werkdagen [price] => 6799 [postage] => 199 [cpc_type] => PREMIUM [producturl] => http://www.beslist.nl/load_product.php?params=/I4yVDWvWUldaMK/Udk1jTmBsHpNBG34/iy/kcmKl0RY9emn7UDfFLLS-KpWWP-hm1uyl9dKiclBWNGhF5OXpXwxc5ERRKZ9Zz5inPfLnoQ6DZ10Fg1XaIapbfzrgSsJw9LVqn0yREYjw/BlPKJVwV-Kjo-o5Vif7n/Kepscz28= ) [6] => stdClass Object ( [shop_id] => 19560 [shopname] => All4games.nl [shoplogo] => http://hwimages.beslist.net/beslist-images/shop_images/LARGE/19560.png [levertijd] => 2 weken [price] => 7324 [postage] => 0 [cpc_type] => PREMIUM [producturl] => http://www.beslist.nl/load_product.php?params=sZJsX3VJVZyt1own4uhwl2CO/52ZKwtZdasSwkXwXKdxlIeTqbMczviadYpFhz0AUh2SkbZKpZ7zVHTkb4l6/E/RZ4/tay2Jf9o3YbeGzG1ikdkuJppcFaiPtog77W1wqQbq11csWrne67LsHx1ZTwtQUES4Sjd09YESWn1SLfk= ) [7] => stdClass Object ( [shop_id] => 170 [shopname] => DVDoutlet.nl [shoplogo] => http://hwimages.beslist.net/beslist-images/shop_images/LARGE/170.png [levertijd] => 1 werkdag [price] => 7379 [postage] => 99 [cpc_type] => PREMIUM [producturl] => http://www.beslist.nl/load_product.php?params=1oUOtmJseG-pSFdR4ARBRludk5GG/4tvVKf9kgVW5Tm3FwvgzcWJTYtzcU1UkIpaeG1q-d1fxgyQsXYsHpZxIpk5L1GyvtloHo9CJEEU2p0wGTeR4O7m5wbOgZwUMl2bZty/tkkkmr/frHiVHUGxvTjo4COecCYeQSS9Qw5mGvY= ) [8] => stdClass Object ( [shop_id] => 171 [shopname] => Eci.nl [shoplogo] => http://hwimages.beslist.net/beslist-images/shop_images/LARGE/171.png [levertijd] => Op werkdagen voor 15:00 uur besteld, volgende dag in huis [price] => 7899 [postage] => 0 [cpc_type] => PREMIUM [producturl] => http://www.beslist.nl/load_product.php?params=KLG29dqUfz2p701PaXVFAXQxuFEJSyYnQLdb2Uc/vDSG93gYGQv0ADDSl7tLb2tvEApbrsEMbICF/ZPK5EEhgH1f0SvW9kxv-HMgGwwV1UHb9dMoKSbGYYd/1x7vjIjXSIxKAAeH3QaNyfMLsW8mKkZtIA0K-bep/-yYArEKDqM= ) [9] => stdClass Object ( [shop_id] => 1937 [shopname] => Cosmox.nl [shoplogo] => http://hwimages.beslist.net/beslist-images/shop_images/LARGE/1937.png [levertijd] => Op werkdagen voor 15:00 uur besteld, volgende dag in huis [price] => 7899 [postage] => 0 [cpc_type] => PREMIUM [producturl] => http://www.beslist.nl/load_product.php?params=zxCTeUTrjig9HscGodebuIi9rlnVKFe9w4Llq3PkzJGK6Zc6ye8tVSLejanVevOKFtHLapALtJt/XQblkh3ro4sSdHKv7BSiENjs8x37KOMC-JxDvb/A13ZlFp1VUQeZz8a8lvYi6WfWVnQ6sr84w6zDmLR7k22ntFXE8QSXxEw= ) [10] => stdClass Object ( [shop_id] => 18 [shopname] => Freerecordshop.nl [shoplogo] => http://hwimages.beslist.net/beslist-images/shop_images/LARGE/18.png [levertijd] => Op werkdagen voor 15:00 uur besteld, volgende dag in huis [price] => 7999 [postage] => 0 [cpc_type] => PREMIUM [producturl] => http://www.beslist.nl/load_product.php?params=oZcDTR6E3YrlOcj4k2gDZ8MvJQa80mhm9Cp3IOx63eEM/ouF5MmI7nRv3WzNU4BSyF0hwXHc8HLJ-NnUDDBOtUx1q3FqYR0cd2RZc2JGzKHcYKjJfqOGjahnb2TvmaO0upKW5am0MSwHhcvVK3ha3jXUTUtmISB31ilSCSmggJs= ) ) ) ) ) ) Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted July 24, 2013 Share Posted July 24, 2013 try using foreach ($productitemsearch->ProductItemSearchResult->productdata as $key => $att){ echo "$key --- $att<br>"; } to generate a list of the items returned. You'll not need to display all of them, so pick out the ones that you need and then present it as you desire. Quote Link to comment Share on other sites More sharing options...
kbloem Posted July 24, 2013 Author Share Posted July 24, 2013 This is what i get... item_id --- 71267cat_id --- 4title --- Last of Us - PlayStation 3properties --- Game ▪ PlayStation 3 ▪ PEGI: 18 ▪ 2013minprice --- 4999image_url --- http://hwimages2.beslist.net/beslist-images/4/LARGE/000/000/071/71267.pngdirect_link --- http://www.beslist.nl/cddvdrom/d0000071267/The_Last_of_Us_-_PlayStation_3.htmlCatchable fatal error: Object of class stdClass could not be converted to string in /home/indexxx/public_html/gamesite/wsdl/index2.php on line 18 Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted July 25, 2013 Share Posted July 25, 2013 ahh, damn, missed that the shops were all objects, it's hard to follow that output, sorry. maybe try: foreach ($productitemsearch->ProductItemSearchResult->productdata as $key => $att){ if(!is_object($att){ echo "$key --- $att<br>"; } else{ foreach($att->Shops as $shop){ $shops[$shop['shop_id']] = array('name'=>$shop['shopname'], 'logo'=>$shop['shoplogo'], 'levertijd'=>$shop['levertijd'], 'price'=>$shop['price'], 'postage'=>$shop['postage'], 'cp_type'=>$shop['cp_type'], 'product_url' => $shop['producturl']) } echo "Shops ---<br>"; foreach ($shops as $id=>$shop_info){ echo "---- Shop ID $id<br>"; foreach ($shop_onfo as $key=>$value){ echo "---- ---- $key --- $value<br>"; } } It's still a bit early here just now, and I haven't had my coffee yet, so that's probably not going to work out of the tin, but you should be able to tidy it up from that. Quote Link to comment Share on other sites More sharing options...
kbloem Posted July 25, 2013 Author Share Posted July 25, 2013 (edited) Well i am very thankfull for you to help.... I changed the code a bit so the brackets are correct... <?php //require_once('SoapClientAuth.php'); date_default_timezone_set('Europe/Amsterdam'); ini_set("soap.wsdl_cache_enabled", "0"); #- verbinden met WSDL $client = new SoapClient("http://www.beslist.nl/api/v2/wsdl/products.wsdl", array('login'=> "Gamepedia", 'password'=> "gamP8853")); $productitemsearch_args = array('input' => array( 'cat_id' => 4, 'item_id' => 71267 , 'shopinfosort'=> "PRICE", 'shopinfo'=>"TRUE" )); $productitemsearch= $client->ProductItemSearch( $productitemsearch_args ); foreach ($productitemsearch->ProductItemSearchResult->productdata as $key => $att) { if(!is_object($att)) { echo "$key --- $att<br>"; } else { foreach($att->Shops as $shop) { $shops[$shop['shop_id']] = array('name'=>$shop['shopname'], 'logo'=>$shop['shoplogo'], 'levertijd'=>$shop['levertijd'],'price'=>$shop['price'],'postage'=>$shop['postage'], 'cp_type'=>$shop['cp_type'], 'product_url' => $shop['producturl']); echo "Shops ---<br>"; } } } foreach ($shops as $id=>$shop_info) { echo "---- Shop ID $id<br>"; } foreach ($shop_onfo as $key=>$value) { echo "---- ---- $key --- $value<br>"; } //foreach ($productitemsearch->ProductItemSearchResult->productdata as $key => $att ){ //echo "$key --- $att<br>";} //print_r ($productitemsearch); ?> But i still get an error... Fatal error: Cannot use object of type stdClass as array in /home/indexxx/public_html/gamesite/wsdl/index2.php on line 27 Edited July 25, 2013 by kbloem Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted July 25, 2013 Share Posted July 25, 2013 try changing 27 to $shops[$shop->shop_id] = array('name'=>$shop->shopname, 'logo'=>$shop->shoplogo, 'levertijd'=>$shop->levertijd,'price'=>$shop->price,'postage'=>$shop->postage, 'cp_type'=>$shop->cp_type, 'product_url' => $shop->producturl); Quote Link to comment Share on other sites More sharing options...
kbloem Posted July 25, 2013 Author Share Posted July 25, 2013 I think we are getting there... however, it now only shows one shop? Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted July 25, 2013 Share Posted July 25, 2013 add a var_dump($shops) at the end at see what's in it, then we can see if the problem is populating the array, or displaying it Quote Link to comment Share on other sites More sharing options...
kbloem Posted July 25, 2013 Author Share Posted July 25, 2013 (edited) Vardump gives me this... it only displays the last shop... array(11) { [19]=> array(7) { ["name"]=> string(10) "Wehkamp.nl" ["logo"]=> string(67) "http://hwimages.beslist.net/beslist-images/shop_images/LARGE/19.png" ["levertijd"]=> string(15) "3 - 4 werkdagen" ["price"]=> string(4) "5669" ["postage"]=> int(195) ["cp_type"]=> NULL ["product_url"]=> string(218) "http://www.beslist.nl/load_product.php?params=ZIZXUb6eBwaXaRlI5djBtJYYeB4qaIRwnLHQZO4WmFtE3xc9i4Q2XJr8Yb2slYQEUQldOA0HoEh3WVMtt/RyTCEJscDGdiDG9H7sHmqshaBDrXDy8VpedAQjY4uf4Htk8L-b-w6QCJxz5ldta-a1lpRn9bZTtysoRJ/d5oSTyFs=" } [37]=> array(7) { ["name"]=> string(10) "Nedgame.nl" ["logo"]=> string(67) "http://hwimages.beslist.net/beslist-images/shop_images/LARGE/37.png" ["levertijd"]=> string(57) "Op werkdagen voor 16:00 uur besteld, volgende dag in huis" ["price"]=> string(4) "5900" ["postage"]=> int(195) ["cp_type"]=> NULL ["product_url"]=> string(218) "http://www.beslist.nl/load_product.php?params=Fr/IEmELxYcn3r21EitWakky6Kf5JSUvYr4aSEhhQY5W/g4H0m5iBiyvcwP0DOtDNeKvBV79b4L5NIkkFC2PWuPPte357V4XxdEEkXzhbveUXiADOTVvZqAdkHTSQfB6qV/KPzuWHVqMUFactXn4kLS4oAkzq/Ml/vlAgq4ml5c=" } [1]=> array(7) { ["name"]=> string(7) "bol.com" ["logo"]=> string(66) "http://hwimages.beslist.net/beslist-images/shop_images/LARGE/1.png" ["levertijd"]=> string(57) "Op werkdagen voor 23:00 uur besteld, volgende dag in huis" ["price"]=> string(4) "6499" ["postage"]=> int(0) ["cp_type"]=> NULL ["product_url"]=> string(218) "http://www.beslist.nl/load_product.php?params=cq6ZgIhOiH/5a/abt-ZthzWPLvIpQ/Zg5NsoEXrgobK2Ujzv0IYsHCkxCKUKHb1wdWWtQ8ucEqYOESfW3o2LeJ9DWgR-a8ytU70utljygrZZetdqGlWgJAs5gGEuzgPTVJfcpgh2q84BoR6R1J7u6dyn3sVY8J-uKOrkZku/cZI=" } [2369]=> array(7) { ["name"]=> string(9) "Dixons.nl" ["logo"]=> string(69) "http://hwimages.beslist.net/beslist-images/shop_images/LARGE/2369.png" ["levertijd"]=> string(57) "Op werkdagen voor 23:30 uur besteld, volgende dag in huis" ["price"]=> string(4) "6499" ["postage"]=> int(0) ["cp_type"]=> NULL ["product_url"]=> string(218) "http://www.beslist.nl/load_product.php?params=STSjtnkoVrREEGwQy0Gn9tnbyREb01xFJ0q2QJ4W2D5wyZED7iG/CWgwRhQD460kcKaR7VduiWst-K6A3BJgwb6sH8Vkrc5XksYDIwP5pincovcJoMfIMJMMefPL8zDdZyfgTAGiFJmLfCjSsb/i61IjCLlDZ0j/HD2Euk/xvVo=" } [596]=> array(7) { ["name"]=> string( "MyCom.nl" ["logo"]=> string(68) "http://hwimages.beslist.net/beslist-images/shop_images/LARGE/596.png" ["levertijd"]=> string(57) "Op werkdagen voor 23:30 uur besteld, volgende dag in huis" ["price"]=> string(4) "6499" ["postage"]=> int(0) ["cp_type"]=> NULL ["product_url"]=> string(218) "http://www.beslist.nl/load_product.php?params=J-vuhA3sFjuRjgM9p5UxvO1q4ea4RyUljrJk14WIjF1GXKsGmiACX/6FpN5x8y43SNm5QebpEg2xcgaz8NGxMRd8d6LJGFT-anfIhmvKqilEXoW5-qElu2W7QY4BwJSlRAxl7z2MYaJKWv010nS8MaWp-jDk7hxaXKwvBiDQ-V8=" } [5077]=> array(7) { ["name"]=> string(12) "Intertoys.nl" ["logo"]=> string(69) "http://hwimages.beslist.net/beslist-images/shop_images/LARGE/5077.png" ["levertijd"]=> string(15) "1 - 3 werkdagen" ["price"]=> string(4) "6799" ["postage"]=> int(199) ["cp_type"]=> NULL ["product_url"]=> string(218) "http://www.beslist.nl/load_product.php?params=/I4yVDWvWUldaMK/Udk1jTmBsHpNBG34/iy/kcmKl0RY9emn7UDfFLLS-KpWWP-hm1uyl9dKiclBWNGhF5OXpcd6GJwGNV22NdXmCg5DnjYI/xs57cjgYRk3lsJRwyAphgs7vSvC-5W4hUUQhTGZajfGkoniWYw06GtRJ/AJJN8=" } [19560]=> array(7) { ["name"]=> string(12) "All4games.nl" ["logo"]=> string(70) "http://hwimages.beslist.net/beslist-images/shop_images/LARGE/19560.png" ["levertijd"]=> string(7) "2 weken" ["price"]=> string(4) "6840" ["postage"]=> int(0) ["cp_type"]=> NULL ["product_url"]=> string(218) "http://www.beslist.nl/load_product.php?params=sZJsX3VJVZyt1own4uhwl2CO/52ZKwtZdasSwkXwXKdxlIeTqbMczviadYpFhz0AUh2SkbZKpZ7zVHTkb4l6/CrgbvtwVzlKWFdCTQge9cRGSd0QUyMiHCBKVvtuw1Mepdg4DBUcWrhAC-Hpp8INSnUyk9Q/nWY-qSuXwrR1JJ4=" } [170]=> array(7) { ["name"]=> string(12) "DVDoutlet.nl" ["logo"]=> string(68) "http://hwimages.beslist.net/beslist-images/shop_images/LARGE/170.png" ["levertijd"]=> string(9) "1 werkdag" ["price"]=> string(4) "7379" ["postage"]=> int(99) ["cp_type"]=> NULL ["product_url"]=> string(218) "http://www.beslist.nl/load_product.php?params=1oUOtmJseG-pSFdR4ARBRludk5GG/4tvVKf9kgVW5Tm3FwvgzcWJTYtzcU1UkIpaeG1q-d1fxgyQsXYsHpZxIqBQB28Ewhdn01FcOkja5jI6BsjwS6Y2UjgSoZ-V5PoApn6rDjuEPEpxB-BLOLgV2ECaQ0zcdSHUSAl7UgN2SCE=" } [171]=> array(7) { ["name"]=> string(6) "Eci.nl" ["logo"]=> string(68) "http://hwimages.beslist.net/beslist-images/shop_images/LARGE/171.png" ["levertijd"]=> string(57) "Op werkdagen voor 15:00 uur besteld, volgende dag in huis" ["price"]=> string(4) "7899" ["postage"]=> int(0) ["cp_type"]=> NULL ["product_url"]=> string(218) "http://www.beslist.nl/load_product.php?params=KLG29dqUfz2p701PaXVFAXQxuFEJSyYnQLdb2Uc/vDSG93gYGQv0ADDSl7tLb2tvEApbrsEMbICF/ZPK5EEhgMxhaZI4bO4rnN3pkqcY5TBbB8Ny9vN73PfXU8jrnUmMv6dEEAKen4Z6avaAHmEmT8lm5Zl-22zfCYeX5furRNk=" } [1937]=> array(7) { ["name"]=> string(9) "Cosmox.nl" ["logo"]=> string(69) "http://hwimages.beslist.net/beslist-images/shop_images/LARGE/1937.png" ["levertijd"]=> string(57) "Op werkdagen voor 15:00 uur besteld, volgende dag in huis" ["price"]=> string(4) "7899" ["postage"]=> int(0) ["cp_type"]=> NULL ["product_url"]=> string(218) "http://www.beslist.nl/load_product.php?params=zxCTeUTrjig9HscGodebuIi9rlnVKFe9w4Llq3PkzJGK6Zc6ye8tVSLejanVevOKFtHLapALtJt/XQblkh3ro9JYiiRXPoEhWBwVYtpxFeiHwA3kjd9PBvdDvnjNEQFPjwBIkxrOvyUmd6OgQYsPegIrzYvHldc8AzvprLK9Kak=" } [18]=> array(7) { ["name"]=> string(17) "Freerecordshop.nl" ["logo"]=> string(67) "http://hwimages.beslist.net/beslist-images/shop_images/LARGE/18.png" ["levertijd"]=> string(57) "Op werkdagen voor 15:00 uur besteld, volgende dag in huis" ["price"]=> string(4) "7999" ["postage"]=> int(0) ["cp_type"]=> NULL ["product_url"]=> string(218) "http://www.beslist.nl/load_product.php?params=oZcDTR6E3YrlOcj4k2gDZ8MvJQa80mhm9Cp3IOx63eEM/ouF5MmI7nRv3WzNU4BSyF0hwXHc8HLJ-NnUDDBOtWCHrXKrlaHyPg5oYke1xjfYF4H0imYvnIGPj6A6oc3KGTcO1O/DZSlj8PEcmmEngCHdeQ5/3XGlyIRk2O43e2A=" } } Edited July 25, 2013 by kbloem Quote Link to comment Share on other sites More sharing options...
Solution Muddy_Funster Posted July 25, 2013 Solution Share Posted July 25, 2013 change lines 33-41 to the following: foreach ($shops as $id=>$shop_info){ echo "---- Shop ID $id<br>"; foreach ($shop_onfo as $key=>$value){ echo "---- ---- $key --- $value<br>"; } } the shop info had fallen out of the $shops foreach loop Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.