Getting mysql field values as specific keys
Posted: Sat Dec 13, 2008 4:16 pm
Hello,
I'm creating a mailing list mech. where the administrator adds adds a bunch of emails that he wants to receive our publications. What im now trying to do is create the a link to remove an address he wants to and have that record deleted from the db. Each administrator has a unique id and they can add up to 25 emails right now.
The problem im having is basically I need to dynamically generate the removal link for the form and not have it remove all addresses related to that one id. Below you can see the id's are the same(this cannot change) but there can be different information for each. the link wold be something like a href=index.php?action=doRemove&email=$key[5]
-----------------------------------------------------------------------
id salutation fname lname position email type
------------------------------------------------------------------------
1377 Mr. fname lname pos example@example.com inp
1377 Mr. fname lname pos example1@example.com inp
1377 Mr. fname lname pos example2@example.com inp
1377 Mr. fname lname pos example3@example.com inp
1377 Mr. fname lname pos example4@example.com inp
1377 Mr. fname lname pos example5@example.com inp
__________________________________________________________________________________
Hopefully that is clear nad someone has some insight.
Thank you
I'm creating a mailing list mech. where the administrator adds adds a bunch of emails that he wants to receive our publications. What im now trying to do is create the a link to remove an address he wants to and have that record deleted from the db. Each administrator has a unique id and they can add up to 25 emails right now.
The problem im having is basically I need to dynamically generate the removal link for the form and not have it remove all addresses related to that one id. Below you can see the id's are the same(this cannot change) but there can be different information for each. the link wold be something like a href=index.php?action=doRemove&email=$key[5]
-----------------------------------------------------------------------
id salutation fname lname position email type
------------------------------------------------------------------------
1377 Mr. fname lname pos example@example.com inp
1377 Mr. fname lname pos example1@example.com inp
1377 Mr. fname lname pos example2@example.com inp
1377 Mr. fname lname pos example3@example.com inp
1377 Mr. fname lname pos example4@example.com inp
1377 Mr. fname lname pos example5@example.com inp
__________________________________________________________________________________
Hopefully that is clear nad someone has some insight.
Thank you