Return database result with password only

Asked

Viewed 29 times

0

It is possible to return something from the Mysql database only with a "password"?

I have two names "so-and-so" and "Ciclano" so-and-so is birthday day 11/07, So-and would have to put his name and birthday to show something of the database, the same for Ciclano.

<?php
include("connect.php");
$consulta = "SELECT * FROM nomes";
$con = $mysqli->query($consulta) or die($mysqli->error);
while($dado = $con->fetch_array()){
    echo "<table border=1 cellspacing=0 cellpadding=2";
    echo "<tr>";
    echo "<td width=100>";
    echo $dado["nome"] . " ";
    echo "</td>";
    echo "<td>";
    echo $dado["idade"] . " ";
    echo "</td>";
    echo "</tr>";
    echo "</table>";
}
?>
  • What you’ve already done ?

  • Well, my code so far only searches the entire mysql table, I will edit the question and show it

  • If two passwords are already identical, so normally fields with attribute are used UNIQUE as a basis for authentication, to avoid problems like this. You’re sure the system is like this ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.