note 71055 rejected from features.file-upload by nlopess

From: Date: Thu, 09 Nov 2006 20:05:18 +0000
Subject: note 71055 rejected from features.file-upload by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-119570@lists.php.net to get a copy of this message
Note Submitter: mazelagem at gmail dot com ---- I get this erros: Warning: mssql_query(): supplied argument is not a valid MS SQL-Link resource in F:\Program Files\Apache Software Foundation\Apache2.2\htdocs\project\Funcoes\login.php on line 15 Warning: mssql_num_rows(): supplied argument is not a valid MS SQL-result resource in F:\Program Files\Apache Software Foundation\Apache2.2\htdocs\project\Funcoes\login.php on line 17 code: <?php require('../DB/connect.php'); $login = $_POST[login]; $senha = md5($_POST[senha]); $query = "SELECT NmUsuario, IdPerfil FROM Loginmd5 WHERE DsLogin = '" . $login . "' and SnSenha = '" . $senha . "' "; $resultado = mssql_query($query,$conexao); if (mssql_num_rows($resultado) == 0) $erro = 1; else $erro = 0; ... ?> what should I do? I have a lot of scripts with many other queries and it work... I just don't know what is causing this error... any help? Thanks

« previous php.notes (#119570) next »