note 9622 deleted from mysql_fetch_row by jmcastagnetto

From: Date: Wed, 15 Nov 2000 21:50:32 +0000
Subject: note 9622 deleted from mysql_fetch_row by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-7737@lists.php.net to get a copy of this message
&lt;? $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"); } ?>

« previous php.notes (#7737) next »