mysql - PHP datafetch for loop bug -


i'm getting weird data in database (well not add i'm trying do)

here's loop wich counts 1 52 in weeks , makes url out if give function processing

for ($week = 1; $week < 52 ; $week++) {     kalenderfetch("heren2kalender","http://kovv.mavari.be/xlskalenderscheidsrechter.aspx?&reeks=h3a&week=".$week); } 

the function wich post processes url , extracts data table , inputs database: data in table

for far al can tell not input data weeks, juist randomly stops more data less..

i getting afull lot of error (like time-exceptions , memory-exceptions)

first of all, use:

for ($week = 1; $week <= 52 ; $week++) 

further, if time , memory exceptions, try:

set_time_limit(0); memory_limit("128m"); 

whether works or not depends on php settings. maybe have increase memory in php.ini file.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -