samedi 10 juin 2017

While statement skips fist row

I think that because of the if statement, the while statment skips the first one.

But i need the IF and i need the WHILE.

here is my code:

            if($row_antwoorden_select = mysqli_fetch_array($results_antwoorden_select)){
            while($row_antwoorden_select = mysqli_fetch_array($results_antwoorden_select)){
                $antwoorden .= "".$row_antwoorden_select['naam']."".$row_antwoorden_select['methode']." <a href='".$row_antwoorden_select['url']."'>Open</a><br>";  
                $once_info = "<h4>Antwoorden:</h4>".$select_menu."<br>";
            }
        }

Aucun commentaire:

Enregistrer un commentaire