|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||||
|
|||||
|
Deleting the records in a table
hello all,
I display all the records from a table on a form.I used to update the fields and Now, i would like to delete record(s) in a table using the same form. Here it goes how i really want to implement this one: 1.First, i dont want to delete the record in a table in a single-step. 2.(when i displayed the records from a table, i also display a check box at the end of each record). 3.Now, first, i want to check this box and click submit button.when i do this, i want to set a value to this row in the table(I've inserted a column called delete in the table)So, this column will have a value 0 or 1 when this row has been selected to delete. 4.After the value has been set, the form will show two buttons or images which has the values cancel delete or delete the record. so, thatz it. First thing, i would really like to do is to set the value to the delete column when the check box has been checked. The records will be deleted only based on the column(delete), i.e the flag value. If somebody has implemented such an application before, could you pls give me the code, if not atleast something similar to delete the records would be fine.I am able to do it with a simple delete statement in a single step but not in the way how i explained before. For your reference here is my code which hope somebody would be there to give assistance Thanks in advance To this code, i need to implement the delete functionality. php Code:
|
|
#2
|
|||||
|
|||||
|
RE: Deleting the records in a table
Wasn't this answered in: ?
http://codewalkers.com/forum/index....6&realm=default OK, I'm just going to copy out your code below with colour coding on so that it is easier to read - then I'll see if I can modify it where necessary for you. -------- php Code:
|