Adjusting SQL line to include a collection
问题 I have a function call resource of the day which I have duplicated and changed to be called Editors Picks. The function looks in the DB and grabs a ramdom image based on value and todays date. Here is the SQL Line: sql_value( "select resource value from resource_data where resource > 5 and resource_type_field=$rotd_field and value like '" . date("Y-m-d") . "%' limit 1;" ,0); I would like to try and adapt this line to pull in a collection instead, this is the SQL line that pulls in a