Posted By

shawntysco on 09/22/10


Tagged

mysql php delete runtime


Versions (?)

PHP, Build a basic dynamic DELETE string


 / Published in: PHP
 

URL: linkdeo.net

Used to delete rows from the database. \r\nTo use:\r\n$del = delete(\"quicklinks\", $GET[\'id\']) ;

  1. //Delete
  2. function delete($table, $value){
  3. $delete_sql = querys("DELETE FROM " . $table . " WHERE id = '" . $value . "';");
  4. }//end delete
  5.  
  6. //To use:
  7. $del = delete("quick_links", $_GET['id']) ;

Report this snippet  

You need to login to post a comment.