reading name field from a button
Posted: Fri Nov 13, 2009 12:26 pm
Here is what I am trying to do...
I currently have a search function that pulls page information from a MySQL databse and displays page id, pagename, etc... with one record being displayed on each line.
There is an edit button on each line that when you click it will pull up the specifics of that page so I can edit them and then save them back to the database. I am currently storing the pageid of each record in the name field of the button on each line so I can use that to pull up the specifics of that record and I have verified that the correct id number is being stored in that field of the corresponding button.
What is the best way to read the name field so I can do a search using it on the database... or is there a better way to accomplish my goal?
Thanks all....
I currently have a search function that pulls page information from a MySQL databse and displays page id, pagename, etc... with one record being displayed on each line.
There is an edit button on each line that when you click it will pull up the specifics of that page so I can edit them and then save them back to the database. I am currently storing the pageid of each record in the name field of the button on each line so I can use that to pull up the specifics of that record and I have verified that the correct id number is being stored in that field of the corresponding button.
What is the best way to read the name field so I can do a search using it on the database... or is there a better way to accomplish my goal?
Thanks all....