=-ask God for help thank you.

Source: Internet
Author: User
=-ask God for help thank you ~


I want to click the Edit button to get the ID of this form and print it out, how do I change it?
------to solve the idea----------------------
If every row of your data is read from the database, then you should have an ID for each line, so you just need to pass the ID to the Edit button, which should not have much to do with the form, because the ID data is read from the database, not from the DOM.
Like what:
$data = Array (
Array (' id ' = = 1, ' other_data ' = ' xxxxxxx '),//Line 1
Array (' id ' = = 2, ' other_data ' = ' yyyyyy '),//Line 2
);
Pseudo code
foreach ($data as $row) {
"> Edit
}
------to solve the idea----------------------
Go to the database, that's all.
$a =query (' select*from ' table name ');
while ($b =MYSQL_FETCH_ASSOC ($a)) {
echo $b [' id '];
Echo Editor

}
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.