Getting specific table row based on id mysql DB

后端 未结 1 1337
感动是毒
感动是毒 2021-01-26 14:45

I have a database where I view all the records, the last column is the table ID, I click it and I want to be able to edit that rows data only, here\'s what I got but it doesn\'t

相关标签:
1条回答
  • 2021-01-26 15:37

    It is because you try to GET a name "id" from a form which is POSTed ;) And also embed PHP in html more clearly. For example, value="<?php echo $row['id']; ?>" is more "true" rather than value="<? echo "$row[id]"?>" ;)

    0 讨论(0)
提交回复
热议问题