# replaced $counter with $i. for ($i=1; $i<10; $i++){ ........... }