Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

FW: [PEAR] dataobject : problem with insert function

> -----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

Report this thread to moderator Post Follow-up to this message
Old Post
Denis Gerasimov
08-23-04 01:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:41 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.