Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while($codigo = mysql_fetch_array($pegacodigos)){
- $array = array(
- 'key' => '',
- 'module' => 'imoveis',
- 'method' => 'busca_fotos',
- 'field' => array (
- 'CODIGO' => 'Codigo',
- 'IMAGEM_G' => 'Foto',
- 'IMAGEM_P' => 'Thumbnail',
- ),
- 'filter' => array (
- 'CODIGO' => $codigo['CODIGO']
- ),
- 'limit' => '0, 1000'
- );
- $client = new SoapClient(null, array (
- 'uri' => 'http://soap.imo.bi/',
- 'location' => 'http://soap.imo.bi/soap.dll',
- 'trace' => 'trace'
- ));
- $res = $client->get($array);
- for($j = 0; $j<count($res)-1; $j++){
- $c = $res[$j]['Codigo'];
- $d = $res[$j]['Foto'];
- $e = $res[$j]['Thumbnail'];
- $ins = mysql_query("INSERT INTO imagens VALUES ('".$codigo['CODIGO']."', '$c', '$d', '$e')")
- or die (mysql_error());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement