Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. if (isset ($_POST["password"]) && isset ($_POST["username"])){
  2. $conexion=mysqli_connect($dbhost,$ucangelsanchez,$dbuserpass,$dbname) or die ("<h3>No se ha podido establecer conexion con el servidor</h3>");
  3. $consulta=mysql_query("select * from persoas where user='" . $_POST["username"] ."'and pass='". $_POST["password"] ."'");
  4. if (mysql_num_rows($consulta)>0)
  5. {
  6. session_start();
  7. require ('conexion.php')
  8.  
  9.  
  10.  
  11. else
  12. {
  13.  
  14. echo "<center><p>Datos de acceso incorrectos</p></center>";
  15. }
  16. }
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement