note 57588 modified in function.mysql-affected-rows by danbrown

From: Date: Tue, 28 Apr 2009 01:50:16 +0000
Subject: note 57588 modified in function.mysql-affected-rows by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153876@lists.php.net to get a copy of this message
To solve the affectedRows() issue on MySQL using PEAR::DB, simply add a 'client_flags' key with a value of 2 to your $dsn options: <?php $dsn = array( 'phptype' => 'mysql', 'client_flags' => 2, 'username' => 'someuser', 'password' => 'apasswd', 'hostspec' => 'localhost', 'database' => 'thedb', ); ?> --was-- To solve the affectedRows() issue on MySQL using PEAR::DB, simply add a 'client_flags' key with a value of 2 to your $dsn options: $dsn = array( 'phptype' => 'mysql', 'client_flags' => 2, 'username' => 'someuser', 'password' => 'apasswd', 'hostspec' => 'localhost', 'database' => 'thedb', ); http://php.net/manual/en/function.mysql-affected-rows.php

« previous php.notes (#153876) next »