Using PHP Increment and Conditional Statement to Alternate Loop Background

You’re incrementing $count twice in every iteration of the loop, the first if will always be false and the second will always be true.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)