RE: [PHP] PDO question

2012-11-29 Thread admin
> -Original Message- > From: Jim Lucas [mailto:li...@cmsws.com] > Sent: Wednesday, November 28, 2012 9:23 PM > To: ad...@buskirkgraphics.com > Cc: php-general@lists.php.net > Subject: Re: [PHP] PDO question > > On 11/28/2012 12:58 PM, ad...@buskirkgraphics.com wr

Re: [PHP] PDO question

2012-11-28 Thread Fatih P.
On Wed, Nov 28, 2012 at 9:22 PM, Jim Lucas wrote: > On 11/28/2012 12:58 PM, ad...@buskirkgraphics.com wrote: > >> >> Guys, >> I am not quiet sure what is happening but every time i try to connect to a >> remote host it refers back to localhost. >> >> $pdo = new PDO('mysql:host=171.16.23.44;**dbna

Re: [PHP] PDO question

2012-11-28 Thread Jim Lucas
On 11/28/2012 12:58 PM, ad...@buskirkgraphics.com wrote: Guys, I am not quiet sure what is happening but every time i try to connect to a remote host it refers back to localhost. $pdo = new PDO('mysql:host=171.16.23.44;dbname=test', 'user','password'); ERROR: Access denied for user 'user'@'loc

[PHP] PDO question

2012-11-28 Thread ad...@buskirkgraphics.com
Guys, I am not quiet sure what is happening but every time i try to connect to a remote host it refers back to localhost. $pdo = new PDO('mysql:host=171.16.23.44;dbname=test', 'user','password'); ERROR: Access denied for user 'user'@'localhost' (using password: YES) in /var/www/html/text.php An

Re: [PHP] PDO Question. Number of rows returned

2008-07-13 Thread Bastien Koert
On Sun, Jul 13, 2008 at 11:12 AM, Stephen <[EMAIL PROTECTED]> wrote: > Bastien Koert wrote: > > On Sun, Jul 13, 2008 at 10:30 AM, Stephen <[EMAIL PROTECTED]> <[EMAIL > PROTECTED]> wrote: > > > > Kevin Waterson wrote: > > > > I am switching to PDO and can't find an equivalent to mysql_num_rows.

Re: [PHP] PDO Question. Number of rows returned

2008-07-13 Thread Stephen
Bastien Koert wrote: On Sun, Jul 13, 2008 at 10:30 AM, Stephen <[EMAIL PROTECTED]> wrote: Kevin Waterson wrote: I am switching to PDO and can't find an equivalent to mysql_num_rows. Am I missing something silly? Or is there a change of thinking needed for PDO? How should I d

Re: [PHP] PDO Question. Number of rows returned

2008-07-13 Thread Bastien Koert
On Sun, Jul 13, 2008 at 10:30 AM, Stephen <[EMAIL PROTECTED]> wrote: > Kevin Waterson wrote: > >> I am switching to PDO and can't find an equivalent to mysql_num_rows. >>> >>> Am I missing something silly? >>> >>> Or is there a change of thinking needed for PDO? >>> >>> How should I determine how

Re: [PHP] PDO Question. Number of rows returned

2008-07-13 Thread Stephen
Kevin Waterson wrote: I am switching to PDO and can't find an equivalent to mysql_num_rows. Am I missing something silly? Or is there a change of thinking needed for PDO? How should I determine how many rows a query returned? PDO returns an array, sizeof/count will get you home I wou

Re: [PHP] PDO Question. Number of rows returned

2008-07-12 Thread Kevin Waterson
This one time, at band camp, Stephen <[EMAIL PROTECTED]> wrote: > I am switching to PDO and can't find an equivalent to mysql_num_rows. > > Am I missing something silly? > > Or is there a change of thinking needed for PDO? > > How should I determine how many rows a query returned? PDO returns

[PHP] PDO Question. Number of rows returned

2008-07-12 Thread Stephen
I am switching to PDO and can't find an equivalent to mysql_num_rows. Am I missing something silly? Or is there a change of thinking needed for PDO? How should I determine how many rows a query returned? Thanks Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h