I have this query
"SELECT * FROM TABLE ORDER BY RAND() LIMIT 5"
but i dont want to display data with ID =3
from this table… is that possible with rand() function ?
EXAMPLE: I have 10 images in table with id=1 id=2 and id=3 id=4 id=5…. now i want to display all images random except image with id=3
Sure, just add a
WHEREstatement (and removeLIMIT, since you want all images):