Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset ($_POST["password"]) && isset ($_POST["username"])){
- $conexion=mysqli_connect($dbhost,$ucangelsanchez,$dbuserpass,$dbname) or die ("<h3>No se ha podido establecer conexion con el servidor</h3>");
- $consulta=mysql_query("select * from persoas where user='" . $_POST["username"] ."'and pass='". $_POST["password"] ."'");
- if (mysql_num_rows($consulta)>0)
- {
- session_start();
- require ('conexion.php')
- else
- {
- echo "<center><p>Datos de acceso incorrectos</p></center>";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement