Hi List,
What are the equivalent MDB2 methods for:
* mysql_last_insert_id()
* mysql_real_escape_string()
Much obliged,
Yves
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* mysql_last_insert_id()
getAfterId()
http://pear.php.net/reference/LiveUser_Admin-0.3.3/LiveUser_Admin/LiveUser_Admin_Storage_MDB2.html#methodgetAfterId
* mysql_real_escape_string()
escape()
http://pear.php.net/package/MDB2/docs/latest/MDB2/MDB2_Driver_Common.html#methodescape
--
PHP
Here are some other options for escaping:
http://pear.php.net/manual/en/package.database.mdb2.intro-quote.php
I think getAfterId will not work - seems to be part of LiveUser Admin.
Interesting stuff, definitely worth a look.
On Mon, Sep 8, 2008 at 7:14 PM, YVES SUCAET [EMAIL PROTECTED] wrote:
]
To: YVES SUCAET [EMAIL PROTECTED]Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] Getting started with MDB2
* mysql_last_insert_id()
getAfterId()
http://pear.php.net/reference/LiveUser_Admin-0.3.3/LiveUser_Admin/LiveUser_Admin_Storage_MDB2.html#methodgetAfterId
* mysql_real_escape_string
@lists.php.net
Subject: Re: [PHP-DB] Getting started with MDB2
* mysql_last_insert_id()
getAfterId()
http://pear.php.net/reference/LiveUser_Admin-0.3.3/LiveUser_Admin/LiveUser_Admin_Storage_MDB2.html#methodgetAfterId
* mysql_real_escape_string()
escape()
http://pear.php.net/package/MDB2
Message --
Received: Mon, 08 Sep 2008 02:02:44 PM CDT
From: Evert Lammerts [EMAIL PROTECTED]
To: YVES SUCAET [EMAIL PROTECTED]Cc: php-db@lists.php.net,
[EMAIL PROTECTED]
Subject: Re: [PHP-DB] Getting started with MDB2
Have a look at this:
http://wiki.pooteeweet.org/index.php?area=MDB2page
Maybe you don't need the trailing semicolon after the phpinfo()? This
is just a thought as sometimes you don't need it in the final php
statement before the ? tag.
Mark
On 20/09/05, Clint Lovell [EMAIL PROTECTED] wrote:
I'm just getting started here and I'm working with PHP MySQL for Dummies.
I'm just getting started here and I'm working with PHP MySQL for Dummies.
The book says to write a simple file called test.php with the following
entries in it:
html
head
titlePHP Test/title
/head
body
pThis is an HTML line
p
?php
echo This is a PHP line;
phpinfo();
?
/body/html
When I run
People don't like top posting, but I'm doing it for a reason. See what's at
the end
1. Clint - Don't hijack threads. Some people use threaded mail clients, and
your getting started will end up under Yui's thread.
2. Is it *necessary* to have a confidentiality notice that's just about
Man, he was just asking a simple question, no need to criticize every
little aspect of etiquette. Please allow me to be a hypocrite and
critique your criticism:
1) If his question gets buried in Yui's thread, no big deal, no one
will answer and he will ask it again in a few days. If
I running php4/apache under windows 2000.
What do I need installed on the computer to access my oracle server? (I
notice it refers to oracle_home, so I obviously need to install some of the
oracle client software on my machine).
Dr. John Coonrod, Vice President, [EMAIL
11 matches
Mail list logo