For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > August 2004 > FW: [PEAR] dataobject : problem with insert function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author FW: [PEAR] dataobject : problem with insert function
Denis Gerasimov

2004-08-23, 8:57 am


> -----Original Message-----
> From: Denis Gerasimov [mailto:denis.gerasimov@vekos.ru]
> Sent: Monday, August 23, 2004 2:13 PM
> To: 'Ludovic LAURENT'
> Subject: RE: [PEAR] dataobject : problem with insert function
>
>
> Hmmm...
>
> But this just is a notice, not fatal error. I mean that all should work
> anyway.
> Does it work, i.e. inserts new record to db or not?
>
> There are some more ways to do this:
>
> 1. if you need this dataobject only for inserting new records you may try
> to delete [yourtablename__keys] section for this table from your
> database.ini file.
>
> 2. you also may do this 'dynamically' with config
>
> $arrOptions = & PEAR::getStaticProperty('DB_DataObject',
'options');
>
> and make appropriate changes there.
>
> 3. set
>
> $this->keys('real_field_name');
>
> Where 'real_field_name' is any NOT integer field.
>
> 4. disable warnings for your script like this:
>
> ini_set('error_reporting', E_ALL & ~E_NOTICE);
>
> One of these should solve your problem.
>
> -----Original Message-----
> From: Ludovic LAURENT [mailto:ludov.laurent@laposte.net]
> Sent: Monday, August 23, 2004 1:48 PM
> To: Denis Gerasimov; PEAR General ML
> Subject: Re: [PEAR] dataobject : problem with insert function
>
> N, I've always the error messages...
>
> Notice: Undefined index: in /usr/local/lib/php/pear/DB/DataObject.php on
> line 1795
> ----- Original Message -----
> From: "Denis Gerasimov" <denis.gerasimov@vekos.ru>
> To: "PEAR General ML" <pear-general@lists.php.net>
> Cc: "'Ludovic LAURENT'" <ludov.laurent@laposte.net>
> Sent: Monday, August 23, 2004 11:38 AM
> Subject: FW: [PEAR] dataobject : problem with insert function
>
>
> on
> For
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com