$pegacodigos = mysql_query("SELECT CODIGO FROM imovel");
while($codigo = mysql_fetch_array($pegacodigos){ ...
Deleting and rewriting everything:
- The
$pegacodigos
through a loop takes allCODIGO
in theIMOVEL
- Save as
array
to go through this script link - Starts to select in web-service all photos for
$codigo['CODIGO']
- And begins to insert into the second bank script fields as attached image
This link does exactly what I want but it takes too long to know that it will never accomplish the task I need.
For me, I have with me that loop
is in the wrong place making it for every photo he retrieves, he makes 1 connection in the web-service or making more loops than necessary. The $res
that is the result of $array
with $client
returns the 55 thousand photos, while
is embracing everything, so there is some problem there causing extreme slowness.
Help me figure out the logic bug?