944,030 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 253
  • PHP RSS
Nov 3rd, 2009
0

Deleting rows

Expand Post »
Hi
What i want to do is using php code to write to delete the entire row in the db. each row has its own id, field and content. instead of deleting the row with the id, can i do by the field name? how would i do this?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
futhonguy is offline Offline
69 posts
since Oct 2009
Nov 3rd, 2009
0
Re: Deleting rows
You're looking for

mysql Syntax (Toggle Plain Text)
  1. DELETE FROM table_name WHERE fieldname = 'value';

MySQL documentation for DELETE:
http://dev.mysql.com/doc/refman/5.0/en/delete.html
Reputation Points: 40
Solved Threads: 31
Junior Poster
EvolutionFallen is offline Offline
198 posts
since Aug 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: if isset ==
Next Thread in PHP Forum Timeline: birthday reminder





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC