Originally Posted by Dormilich
just for the records, put it inside the while loop.
new mysqli() or die() wont’t work. in case you have no connection you will still get an mysqli object. you explicitly need to test with myqli->connect_error
you mean put the var_dump($row) and var_dump($year) inside the while loop?