I wrote a small query to the database to output all data from the database, and it displays only one first.

$latters = mysql_query("SELECT * FROM latters"); $latterslink = mysql_fetch_array($latters); 

    1 answer 1

     while($latterslink = mysql_fetch_array($latters)) { echo $latterslink[param]; } 

    where param is a kind of column in your table.

    • @cnofss, where does the $ userinfo variable come from? - MasterAlex
    • @MasterAlex This is the output of user data. - cnofss
    • @MasterAlex it all works well, gives what you need. At authorization data about the user who entered the site are displayed. Even if I just put the required number in the request, it still does not display anything. Everything is there in the database, otherwise it would give an error. - cnofss
    • @MasterAlex I said that even if I just put the number, it still does not work. Variable fully working. Even if I just do echo $ userinfo [id]; then he will give me my id - cnofss
    • 2
      @cnofss, I believe that he answered the question posed in the subject completely; - MasterAlex