note 9622 added to mysql_fetch_row
| From: | simas at bnet dot com dot br | Date: | Wed, 15 Nov 2000 19:17:19 +0000 |
| Subject: | note 9622 added to mysql_fetch_row | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7720@lists.php.net to get a copy of this message | ||
<?
$conectar = mysql_connect("localhost", "xxxx", "xxxxxxxx");
mysql_select_db(banco-de-dados, $conectar);
$consultar = "SELECT login,senha from usuarios WHERE login='$login'" and
senha='$senha'";
$resultado = mysql_query($consultar, $conectar);
$ver = mysql_num_rows($resultado);
if ($ver == 1) {
printf("<html> <head> <title>Controle de Clientes - Empresa
XXX</title>
</head>");
printf("<body> bla bla bla... </body </html>");
} else
printf ("Aí sujismundo, vai tomar um banho que tu nem é cadastrado");
}
?>
http://www.php.net/manual/function.mysql-fetch-row.php