SELECT * FROM `bram_files` WHERE type REGEXP '(htm|php|txt|pl)' ORDER BY RAND() LIMIT 0,1; :