phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] proposal-branch; porting


From: Joseph Engo
Subject: Re: [Phpgroupware-developers] proposal-branch; porting
Date: Wed, 21 Apr 2004 18:21:04 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040207)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

sigurdne wrote:

| How about $GLOBALS['phpgw']->db->db_addslashes()

There are 2 things you can do for this.   If you are getting your
values from a form, safeargs will take care of adding slashes to it.
Outside of that, you can just use addslashes() from PHP.  To be
honest, I can't remeber why we created our own function for handling
this.  Does anyone remeber ? :P

| $GLOBALS['phpgw']->db->get_last_insert_id()
|
This is something I need to add.  Its very easy to do for PostgreSQL,
but MySQL is more of a pain.  For now, I am just doing a select after
I add the record.  Which will be fixed later once get_last_insert_id()
is ported.  AdoDB doesn't, from what I understand have something like
this, or its something they removed over time for whatever reason.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAhvPO/AzmiD/o0voRAuG6AJ46MeWcdmsrYUlf7vWkcCRU4Be96wCfaJEq
6tdiALSpS2cgqSvKgcU2M6A=
=tR13
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]