I apologize if this isn't the right list. didn't know if this would be support necessarily since it's a custom module.<br>
<br>
I'm at a loss as to whether this is a bug or whether I'm just trying to do something I'm not supposed to.<br>
I can't get a query working using the like operator in drupal. the same sql runs fine in in phpmyadmin.<br>
<br>
not like will return results though weird. any ideas? <br>
<br>
<pre>function _db_getartistlist($filter=''){<br>//Example $filter='A%';<br>/*filter not working yet ??*/<br><br>/*doesn't work*/<br>/*<br> if($filter!=''){<br> return db_query('select distinct artist from {mp3col_data} where artist like \'' .$filter . '\' order by artist');
<br> //return db_query('select distinct artist from {mp3col_data} where artist like \'%s\' order by artist',$filter);<br><br> }else{<br> return db_query('select distinct artist from {mp3col_data} order by artist');
<br> }<br>*/<br><br> /*works*/<br> return db_query('select distinct artist from {mp3col_data} order by artist');<br>}<br></pre>
<br clear="all"><br>-- <br>Thomas G. Willis<br>-----------------------------------------------<br><a href="http://i-see-sound.com">http://i-see-sound.com</a><br><a href="http://tomwillis.sonicdiscord.com">http://tomwillis.sonicdiscord.com
</a><br><br><br>