I have 2 tables;
[links]
id
link
clicks
Exemplo de Link cadastrado
ID link clicks
1 http://www.google.com.br NULL
2 http://www.gmail.com NULL
[users]
id
nome
email
Exemplo de user cadastrado
ID NOME EMAIL
400 XXXXXXXXX [email protected]
100 AAAAAAAAAA [email protected]
250 DDDDDDDDD [email protected]
When the user clicks on a link, he / she arrows that user id by clicking it, adding the id inside the "clicks" field,
ID link clicks
1 http://www.google.com.br 400
If you click on the same link, it looks like this:
ID link clicks
1 http://www.google.com.br 400, 250
If another click on the same link again, it looks like this:
ID link clicks
1 http://www.google.com.br 400, 250, 100
And so with the other links etc.
What I need is via PHP and MySQL to know, for example, everyone who clicked on the gooogle.com link showing their name and email.
I honestly can not think of code structure and logic.