| | |
Deleting rows
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2009
Posts: 49
Reputation:
Solved Threads: 8
-1
#2 Nov 3rd, 2009
futhonguy,
I already answered this question in the other thread you posted about an hour ago:
http://www.daniweb.com/forums/thread235823.html
I already answered this question in the other thread you posted about an hour ago:
http://www.daniweb.com/forums/thread235823.html
•
•
Join Date: Sep 2009
Posts: 557
Reputation:
Solved Threads: 64
-1
#3 Nov 4th, 2009
yes you can always do that provided that the field name has unique constraint on it.Otherwise you will end up deleting more than one row with the same field name but different ids.
Is this a duplicate thread you created. If in case, you forgot the one, after you created it, you can always see the threads started by you in the profile or else browse the threads subscribed by you; both options accessible from the control panel one of the menu from the row of top header menus
Is this a duplicate thread you created. If in case, you forgot the one, after you created it, you can always see the threads started by you in the profile or else browse the threads subscribed by you; both options accessible from the control panel one of the menu from the row of top header menus
Last edited by network18; Nov 4th, 2009 at 1:53 am. Reason: Edit: Duplicate thread?
"The discipline of writing something down is the first step towards making it happen."
follow me on twitter
follow me on twitter
-2
#4 Nov 4th, 2009
This is simple, just instead of WHEREing the id in your query, you should WHERE the field. BUT take care with this, if you have two or more rows in which the field have the same name, then I'm afraid you'll be deleting all of these rows...
I take your reality and substitute my own
violarisgeorge.com
violarisgeorge.com
![]() |
Similar Threads
- deleting rows from a JTable (Java)
- Deleting rows in Excel (VB.NET)
- Deleting rows in datagrid (C#)
- update JTable after deleting a rows! (Java)
- Delete all rows from table in javascript (JavaScript / DHTML / AJAX)
- Code for Deleting a Record in a database?? (Visual Basic 4 / 5 / 6)
- Adding a deleting rows (JSP)
- Deleting Rows in excel (Visual Basic 4 / 5 / 6)
Other Threads in the PHP Forum
- Previous Thread: PHP to display content in editable text area
- Next Thread: PHP Email Form with Validation
Views: 217 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date datepart directory display download dynamic echo email error file files folder form forms function functions google head href htaccess html image include insert integration ip java javascript joomla jquery limit link list login loop mail menu methods mlm mod_rewrite multiple mysql oop parse password paypal pdf php problem query radio random recursion regex remote script search select seo server sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube





