PHP, Build a basic dynamic DELETE string


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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']) ;

URL: linkdeo.net

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.