[PHP] Help! ¡Ayuda!
I'm trying to read a record from a dbase data base so I've previously opened it successfully. The problem is that I call the function dbase_get_record, but it returns no records. The database is ok because I call the funcion dbase_numfields and dbase_numrecords and they give me correct information. Would you help me, please?. Here is the source code that fails. [EMAIL PROTECTED] Estoy intentando leer un registro de una base de datos dbase, por lo que antes la he abierto con éxito. el problema residen en que llamo a la función dbase_get_record, pero no me devuelve ningún registro. La base de datos está bien, porque llamo a la función dbase_numfields y dbase_numrecords y me dan información correcta. ¿Me podríais ayudar, por favor?. Ahí va el código fuente: [EMAIL PROTECTED] Source code- Código fuente: ? $based=articulo.dbf; if (($descriptor=dbase_open ($based, 0))==0){ printf (brError al abrir la base de datos); }else{ printf (brBase de datos abierta); $num_registros=dbase_numrecords($descriptor); $num_campos=dbase_numfields($descriptor); for ($i=1;$i=$num_registros;$i++){ $registro= dbase_get_record ($descriptor, $i); for ($j=0;$j$num_campos;$j++){ printf (brFila %d,Campo %d vale %S, $i, $j, $registro[$j]); } } dbase_close($descriptor); printf (brBase de datos cerrada); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] help!! ¡¡ayuda!!
I need to open a dbase file, so I use the dbase_open function and then I compile it but it tells me Fatal error: Call to undefined function: dbase_open() it seems like this function does not exists!.Does anybody could help me? Thanks [EMAIL PROTECTED] --- Necesito abrir una base de datos dbase, por lo que uso la función dbase_open y al compilar, me sale el error: Fatal error: Call to undefined function: dbase_open() Parece como si la función no existiera. ¿¿Puede alguien ayudarme?? ¡¡Es muy urgente!!Gracias [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] help!! ¡¡ayuda!!
-Original Message- From: Sebas [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 12:19 PM To: [EMAIL PROTECTED] Subject: [PHP] help!! ¡¡ayuda!! I need to open a dbase file, so I use the dbase_open function and then I compile it but it tells me Fatal error: Call to undefined function: dbase_open() it seems like this function does not exists!.Does anybody could help me? There aren't any additional libraries needed for the dbase functions, but they'll only be available if '--with-dbase' was included in the parameters when 'configure' was run. If they're not there, I believe your copy of PHP will need to be rebuilt to get them. --- Mark Roedel | Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained. Longview, Texas, USA| -- John Powell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]