PEAR Packages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPEAR Packages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old August 16th, 2006, 09:43 AM
cirrusfa cirrusfa is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 cirrusfa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!

Reply With Quote
  #2  
Old August 16th, 2006, 10:22 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,727 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 1 h 4 m 45 sec
Reputation Power: 6
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?

Reply With Quote
  #3  
Old August 17th, 2006, 06:27 AM
cirrusfa cirrusfa is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 cirrusfa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPEAR Packages > DB_dataobject -insert


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway