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
ID
Number
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
id