re:[php-es] leer datos de un archivo dbf

From: Date: Tue, 09 Aug 2005 01:20:49 +0000
Subject: re:[php-es] leer datos de un archivo dbf
Groups: php.general.es 
Request: Send a blank email to general-es+get-25778@lists.php.net to get a copy of this message
Hola, soy nuevo en esto del php y necesito leer los datos de una base de datos fox, llamemosla basedato.dbf y tengo que hacerlo con dbase_get_record, y los otros comandos que hay para dbase, hace un mes que estoy peleando y solo he logrado introducir datos a esa base pero ahora tengo que modificar datos y mostrar datos por pantalla, alguna idea para cargar datos uso: agraga dato.php <? $db=dbase_open ("./basedato.dbf", 2); $def = array ($Product_id, $Prod_name, $Eng_name, $No_in_unit, $Unit_price, $Unit_cost, $In_stock, $On_order, $Reorder_at, $Discontinu); dbase_add_record($db, $def); dbase_close ($db); ?> agregar registro.html <html> <body> <form ACTION ='agregadatos.php' METHOD='POST'> <table> <tr> <td>Product_id:</td> <td><input type=Text name=Product_id></td> </tr> <tr> <td>Prod_name:</td> <td><input type=Text name=Prod_name></td> </tr> <tr> <td>Eng_name:</td> <td><input type=Text name=Eng_name></td> </tr> <tr> <td>No_in_unit:</td> <td><input type=Text name=No_in_unit></td> </tr> <tr> <td>Unit_price:</td> <td><input type=Text name=Unit_price></td> </tr> <tr> <td>Unit_cost:</td> <td><input type=Text name=Unit_cost></td> </tr> <tr> <td>In_stock:</td> <td><input type=Text name=In_stock></td> </tr> <tr> <td>On_order:</td> <td><input type=Text name=On_order></td> </tr> <tr> <td>Reorder_at:</td> <td><input type=Text name=Reorder_at></td> </tr> <tr> <td>Discontinu:</td> <td><input type=checkbox name=Discontinu></td> </tr> </table> <input TYPE='SUBMIT' VALUE= 'Agregar'> </body> </html>

« previous php.general.es (#25778) next »