Guest User

Untitled

a guest
Oct 9th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2. $host = "localhost";
  3. $user = "root";
  4. $pass = "";
  5. $dbname = "test";
  6.  
  7. $conexao = mysqli_connect($host, $user, $pass);
  8. $db = mysql_select_db($conexao, $dbname);
  9.  
  10. $nome = "exemplo";
  11.  
  12. $consulta = mysql_query("SELECT * FROM usuarios_teste WHERE nome = $nome ");
  13. ?>
  14.  
  15. $con = mysqli_connect("localhost", "my_user", "my_password", "my_db")
Add Comment
Please, Sign In to add comment