Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_PARSE);
- $username = $_GET['username'];
- $password = $_GET['password'];
- if($username && $password)
- {
- // Crea Connessione
- $conn= new mysqli_connect("localhost","admin","admin");
- // Check connection
- if (!$conn){
- die("Errore selezione db".mysqli_connect_error());
- }echo "Connessione avvenuta con successo";
- $db_select= mysqli_select_db('lifesport',$conn);
- if (!$db_selected) {
- die ("Errore nella selezione del database: " . mysql_error());
- }
- }
- // Selezione Database
- else
- {
- die ("Inserisci username e password");
- }
- ?>
Add Comment
Please, Sign In to add comment