firefoxla ilgisi yok konununda foreach bu hatayi eğerki gönderdigin değişken dizi değilse verir.

$records0 değişkenininiz null dönüyor olabilir