Pessoal instalei no sarge, freetds+php4-sybase, ao
usar uma consulta no banco que nao tenho dados ele
retorna o erro:

Warning: mssql_num_rows(): supplied argument is not a
valid Sybase result resource in

Segue a funcao abaixo..



$sql = "SELECT * FROM PESSOA WHERE nmPessoa like
'%$tbuscar%' ORDER BY $ordem";
$result = mssql_query( $sql );
if (!($result != FALSE && mssql_num_rows($result) >
0))
{
  aviso( "Não encontrado");
}




Me derem uma ajuda por favor....


Valeu

Allan Patrick


__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger 
http://br.download.yahoo.com/messenger/ 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Responder a