Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/11/2011, 16:43
Avatar de bernaap
bernaap
 
Fecha de Ingreso: agosto-2007
Mensajes: 74
Antigüedad: 16 años, 8 meses
Puntos: 0
Respuesta: Problema con PHP ODBC Campo memo ACCESS

Ya encontré la solución esta en eta pagina: https://bugs.php.net/bug.php?id=349

Esto es solo el código:

Código PHP:
Ver original
  1. <HTML>
  2. <HEAD><TITLE>Demonstration of Weird ODBC Behavior</TITLE></HEAD>
  3. <BODY>
  4. <?
  5.     /* connect to the data source */
  6.     echo "Connecting to database<BR><BR>\n";
  7.     $DatabaseID = odbc_pconnect("mao", "", "");
  8.  
  9.     /* execute query */
  10.     echo "Executing Query<BR><BR>\n";
  11.     $dbResult = odbc_exec($DatabaseID, "SELECT * FROM activitytype");
  12.  
  13.     /* get each row */
  14.     while (odbc_fetch_row($dbResult))
  15.     {
  16.         echo "Fetched a row<BR><BR>\n";
  17.  
  18.         /* put three of the columns into variable */
  19.         echo "Setting Variables<BR><BR>\n";
  20.         $acttype_id = odbc_result($dbResult, "ID");
  21.         $acttype_shortdescription = odbc_result($dbResult, "ShortDescription");
  22.         $acttype_longdescription = odbc_result($dbResult, "LongDescription");
  23.  
  24.         /* print out the variables */
  25.         echo "Printing data<BR><BR>\n";
  26.         echo $acttype_id . " " . $acttype_shortdescription . "<BR>\n";
  27.         echo $acttype_longdescription . "<BR><BR>\n";
  28.     }
  29.  
  30.     /* free the memory */
  31.     echo "Freeing result<BR><BR>\n";
  32.     odbc_free_result($dbResult);
  33.  
  34. ?>

Gracias por sus respuestas