How to fetch data from database and display it in PHP?

后端 未结 4 1611
不知归路
不知归路 2021-01-17 01:55

How do I get data from a database using php and show it?

The database table has columns, labeled as ID & Number. ID is unique & fix

4条回答
  •  悲哀的现实
    2021-01-17 02:23

    First get the id of the user(it may given while visiting or based on the details given while visiting)

    Then write select query to the table which contains 'number' field.like

    SELECT number FROM table1 WHERE table1.ID=IDFromtheuser;
    

提交回复
热议问题