How can I make a PHP counter?

why the extra if into the while? i would do this:

$counter = 0;
while(...)
{
    (...)
    $counter++;
}

echo $counter;

Leave a Comment

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