Re: [PDO] Help! pdo:prepared()->execute() didn't return rows.
[email protected] (Stanley Sufficool) Thu, 12 Jan 2012 18:33:40 -0800
| Newsgroups | php.pdo |
|---|---|
| Message-ID | <CAK5kxODhn8dv37yrZJZrAJjyDWJhKvNM7Xc99LH42d18X1VjgQ@mail.gmail.com> |
--e89a8f234d2b579dc104b65fb130 Content-Type: text/plain; charset=ISO-8859-1 In order to better diagnose the issue, please include the code you are using to reproduce the problem. Include the code used with the working PDO::query() method and the non-working code used with the PDO::prepared(). On Thu, Jan 12, 2012 at 12:35 AM, Antony <[email protected]> wrote: > Dear ALL, > > My PHP is running under ubuntu 11.10 in VituralBox. The version returned > from phpinfo() is: > PHP Version 5.3.6-13ubuntu3.1 > > PDO supported for mysql. pdo_mysql Client API version is: 5.1.58. > > I wrote a stored procedure to insert a row into a table, then select the > inserted row at the end of the procedure. PDO::query() works fine. I change > it to PDO:prepared() and PDOStatement->execute() for better performance. > but the PDOStatement->fetch() return false after true was got at > PDOStatement->execute(). > > Could somebody help me, please!!! Thank you. > > Best Regards, > Antony > > -- > PDO Working Group Mailing List (http://pdo.php.net) > To unsubscribe, visit: http://www.php.net/unsub.php > > --e89a8f234d2b579dc104b65fb130--