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

后端 未结 4 1612
不知归路
不知归路 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:37

    try

    SELECT number from numberTable nt
    JOIN idTable it ON  it.ID = nt.ID
    WHERE it.ID = `your given id`
    

    as i think your both tables are referenced with id

提交回复
热议问题