Deleting rows

Reply

Join Date: Oct 2009
Posts: 45
Reputation: futhonguy is an unknown quantity at this point 
Solved Threads: 0
futhonguy futhonguy is offline Offline
Light Poster

Deleting rows

 
0
  #1
Nov 3rd, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 49
Reputation: EvolutionFallen is an unknown quantity at this point 
Solved Threads: 8
EvolutionFallen EvolutionFallen is offline Offline
Light Poster
 
0
  #2
Nov 3rd, 2009
You're looking for

  1. DELETE FROM table_name WHERE fieldname = 'value';

MySQL documentation for DELETE:
http://dev.mysql.com/doc/refman/5.0/en/delete.html
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the PHP Forum


Views: 142 | Replies: 1
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC