search

Home  >  Q&A  >  body text

php - PDO connects to MySQL, queries data and outputs it, but it is not printed on the page

As shown in the figure, after connecting to the database, only success is displayed on the page, and no data from the database is displayed. There is a known row of data in the database, id, name, and mail, but I don’t know why it is not displayed. Newbies need guidance< /p>

< /p>

ringa_leeringa_lee2844 days ago428

reply all(2)I'll reply

  • 为情所困

    为情所困2017-05-16 13:11:37

    Official website example:

    Also pay attention to your format,

    space on both sides of the operator

    reply
    0
  • 迷茫

    迷茫2017-05-16 13:11:37

    Thank you for the invitation, your method of getting data is wrong, please see my example

    reply
    0
  • Cancelreply