Skip to content

Instantly share code, notes, and snippets.

@nijjwal
Last active May 25, 2020 02:20
Show Gist options
  • Save nijjwal/e01388cb040f527b5e88 to your computer and use it in GitHub Desktop.
Save nijjwal/e01388cb040f527b5e88 to your computer and use it in GitHub Desktop.
PHP - SQL Injection - 1
<?php
//This class helps to connect to the
class Connection{
public function connect()
{
return new PDO('mysql:host=localhost; dbname=sqlinjection2','root','root');
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment