Re: Buscando una funcion...
| From: | AntonioCadiz | Date: | Tue, 28 Dec 2004 20:13:23 +0000 |
| Subject: | Re: Buscando una funcion... | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-52888@lists.php.net to get a copy of this message | ||
http://es2.php.net/manual/es/function.odbc-num-rows.php
Ricardo I. Pacheco H. wrote:
Hola, Soy novato con el php y aun no conozco las funciones de php Ya me baje el archivo de ayuda en espeñol pero no logro identificar la funcion mas apropiada y sencilla para validar si el cursor devuelto tiene o no al menos un registro. $sqlresult = odbc_exec($nconex,"select * from Agentes where usu_aaa='" . $_POST["usuario"]."'"); if (cualfuncion($sqlresult) = 0) { echo "No hay datos" } else {echo "si hay dtos"} Aprecio mucho su tiempo y atención,Feliz Navidad. -- Zalu2 Antonio Carrasco.