Jump to content

select primary key from HTML table?


mozartpena

Recommended Posts

I have an HTML table which contains a summary of leave requests from employees.

 

The table contains 5 columns: Request ID, Date Requested, Employee Name, Leave Type, and a "View Entry" button after each row. When "View Entry" is clicked it should display the complete request. This comprehensive report NEEDS Request ID as the primary key to be able to display all the data needed in a popup window.

 

so is it possible to retrieve request ID from a specified cell (in this case, the first column for request ID). or is there some ingenious array method to be able to extract request ID?

 

i have had troubles with this for the past days. im turning to you guys for help.

thanks in advance! ;D

Link to comment
https://forums.phpfreaks.com/topic/102662-select-primary-key-from-html-table/
Share on other sites

are you using a database of any kind?

 

If so it would be using a similar concept to pulling up the initial list..

 

I would just pass a variable via the URL to the popup window link.. then the page that is the popup I would script it to display the info accordingly with the var I am pulling from the URL.

are you using a database of any kind?

 

If so it would be using a similar concept to pulling up the initial list..

 

I would just pass a variable via the URL to the popup window link.. then the page that is the popup I would script it to display the info accordingly with the var I am pulling from the URL.

 

i am using XAMPP (SQL). so there, that's precisely my question. how do i extract that recordID to use in the popup window?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.