Is it possible to check a random query against another table through php? Say I pull a random query from table A and then transfer it to table B. Then I pull another random query from table A. Is there a way to check the 2nd random query against table B to see if the query is the same? And if it is the same start over with the 2nd query again? Also can I skip a line is my database table?
example
id name
1 Bill
2 Joe
3
4 Rob
5 Jim
and so on.
If so can anyone help give me a push in the right direction?