Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   PHP (https://www.clubdelphi.com/foros/forumdisplay.php?f=15)
-   -   cómo Insertar un registro (https://www.clubdelphi.com/foros/showthread.php?t=45162)

maximo_nashir 25-06-2007 07:45:57

cómo Insertar un registro
 
estoy tratando de insertar un registro en una tabla y el comando que estoy utilizando es el siguiente:

$this->Table1->Insert();

Pero cuando le doy a grabar lo que hace es que sobre escribe el registro que hay...

El código que tengo en grabar es el siguiente:

$this->Table1->Post();

También intenté agregar un registro con el siguiente código:

$this->Table1->Append();

pero me sucede lo mismos

qué hacer?:confused:

maximo_nashir 14-07-2007 08:06:05

Ya lo resolví con la siguiente función:
mysql_query("INSERT INTO Table1 (Campo1, Campo2, Campo3)
VALUES ('$VariableCampo1', '$VariableCampo2', '$VariableCampo3')");


La franja horaria es GMT +2. Ahora son las 13:24:21.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi