-1
I have the ID of a user who is in $user.
I have two tables.
Table A (contains questions)
coluna idA
coluna perguntaA
Table B (stores the id of a question answered by a user)
coluna idB
coluna idusuarioB
1° User enters a page X showing a random question from Table A.
2° When he answers, his and the question’s data are stored in Table B (idusuario = $usuario and idB = id of the question he answered).
3° He will no longer see that particular question when he enters page X. That is, I want my select of page X not show a question already answered by the user.
Carlos, thank you very much, it worked perfectly, a hug my friend!
– Iniciante
Luiz, I’m glad I contributed. Hug!
– Carlos Soares