I have a the following query:
function background_audio_file_query($path) {
$result = db_query("SELECT uri
FROM `file_managed`
WHERE `filemime` = 'audio/mpeg'
LIMIT 1 , 30",
array(':uri'=>$path))->fetch();
return $result;
}
How can I pass this to a Drupal variable? I am assuming variable_set()
but I am having trouble with the syntax. Could anyone lend a hand?