如何获取数据表格行(HTML)?

My friend asked with unclearly question. So i am here and take that task for my friend. Please for give him. Thank.

After taking the datarows form dataset as the guide on W3C( http://www.w3schools.com/php/php_mysql_select.asp), i have the below table

||   ID    || Name ||
||   TM001 || John || *(button)

i want when we press button, we can get( ID, NAME), which is in HTML form, and fill it on 2 textboxs on same page.But i am new with PHP and HTML. Therefore i have no idea how to do it. and W3c is too big for a newbie for me T_T. Could someone please give me an advice/hint. Thank alot.

I think instead of populating a table you might want to populate a form with data from the db?
Thread: How to populate php/html form with MySQL data