|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
DB_dataobject -insert
my code :
function insertaractivo($codigo,$nombreactivo,$tipo,$dimens ion,$descripcion,$nivel,$clasificacion) { $activo = new DataObjects_Activo; $activo->codigo=$codigo; $activo->nombre=$nombreactivo; $activo->tipo=$tipo; $activo->dimension=$dimension; $activo->descripcion=$descripcion; $activo->nivel_datos=$nivel; $activo->clasificacion=$clasificacion; $row=$activo->insert(); } in mysql (my table) : codigo int nombre varchar(25) tipo varchar(25) dimension varchar(25) descripcion varchar(25) nivel_datos int clasificacion varchar(25) the problem : when I execute this function,only fill codigo and nivel_datos, any other field is = 0;Please help me! |
|
#2
|
||||
|
||||
|
RE: DB_dataobject -insert
Are the variables coming into your function correctly? Did you extend the DB_Dataobject? If can you echo out the SQL to see if there is a problem with it?
|
|
#3
|
|||
|
|||
|
RE: DB_dataobject -insert
the value of the variables are correctly,if I have a int register the value of the variable store ok,but when I have a varchar type the value of the variable is equal zero
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > DB_dataobject -insert |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|