Answer the question
In order to leave comments, you need to log in
How to display the entire array loaded from MySQL?
I have been suffering with one problem for a long time
. When I display an array loaded from MySQL, one of the elements is not displayed, I have to load it separately. And the reason is generally clear - there is no error in the code - the problem is in the imperfection of the code. Maybe someone will suggest a more interesting output method. How do I output:
while($row = mysql_fetch_array($result)){
//действия внутри цикла
};
Answer the question
In order to leave comments, you need to log in
Everyone does this:
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
printf("ID: %s Имя: %s", $row[0], $row[1]);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question