Skip to content

Instantly share code, notes, and snippets.

@johncongdon
Created October 5, 2015 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johncongdon/5bf218168542803a6fdc to your computer and use it in GitHub Desktop.
Save johncongdon/5bf218168542803a6fdc to your computer and use it in GitHub Desktop.
Want to cry? Just found this in a codebase.
<?php
$auto = $_POST['auto'];
error_reporting(E_ALL ^ E_NOTICE);
ini_set(display_errors,1);
require_once('../INCLUDES/db.func.php');
connect('localhost','*****','*****','*****');
$sql = "delete from `faculty` where auto = '$auto'";
mysql_query($sql);
echo $auto." deleted";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment