Skip to content
Advertisement

Select from database only values not seen before [closed]

Let’s say that I have a database with this data stored:

JavaScript

How can I select all of this value with a PDO query excluding those seen before, so in this case 1E@231,will select only one time.

Advertisement

Answer

If understand what you said, this is your answer:
Connexion to data base with PDO

JavaScript

NOW getting data from data base with not duplication(you can use sql function DISTINCT

JavaScript

May this help you!!

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement