I have this situation with PHP (PDO);
I\'m implementing a method that retrieves data from MySql and does it well, but the problem is that duplicate data recovered as
change pdo attribute accoding to requirment. . .
$dbConnection = new PDO( 'pgsql:host=' . $host . ';dbname=' . $database, $username, $password, ); $dbConnection->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
set / change PDO attribute more detail here