<div class="gmail_quote">On Mon, Mar 21, 2011 at 8:04 AM, Nick Rout <span dir="ltr">&lt;<a href="mailto:nick.rout@gmail.com">nick.rout@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Mon, Mar 21, 2011 at 7:19 PM, David Whyte &lt;<a href="mailto:david.whyte@gmail.com">david.whyte@gmail.com</a>&gt; wrote:<br>
&gt; On Mon, Mar 21, 2011 at 4:07 PM, Wayne Thomas &lt;<a href="mailto:waynethomas69@gmail.com">waynethomas69@gmail.com</a>&gt; wrote:<br>
&gt;&gt; I use:<br>
&gt;&gt; (program.title LIKE &#39;%formula 1%&#39;<br>
&gt;&gt; OR program.title LIKE &#39;%F1%&#39;<br>
&gt;&gt; OR program.subtitle LIKE &#39;%formula 1%&#39;<br>
&gt;&gt; OR program.subtitle LIKE &#39;%F1%&#39;<br>
&gt;&gt; OR program.description LIKE &#39;%formula 1%&#39;<br>
&gt;&gt; OR program.description LIKE &#39;%F1%&#39;)<br>
&gt;&gt; it does pick up the occasional program that isn&#39;t Formula 1 (due to<br>
&gt;&gt; mentioning F1 in the description) but thats on only 3 or 4 a year and can<br>
&gt;&gt; easily be ignored (although they can be worth a watch too if you are F1<br>
&gt;&gt; crazy).<br>
&gt;<br>
&gt; Brilliant.  Thanks heaps!<br>
<br>
</div></div>Actually you might need to include some variations with one instead of<br>
1 (unless mysql&#39;s &#39;like&#39; syntax is that clever)<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</blockquote></div><br><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Not sure how clever the &#39;like&#39; is but:</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><br>
</span></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">(program.title LIKE &#39;%formula 1%&#39;<br>
OR program.title LIKE &#39;%F1%&#39;</span></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">OR program.title LIKE &#39;%formula one%&#39;</span></font><br>
<font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">OR program.subtitle LIKE &#39;%formula 1%&#39;</span></font><br><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">OR program.subtitle LIKE &#39;%F1%&#39;</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><meta http-equiv="content-type" content="text/html; charset=utf-8">OR program.subtitle LIKE &#39;%formula one%&#39;<br>
OR program.description LIKE &#39;%formula 1%&#39;</span></font><br><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">OR program.description LIKE &#39;%F1%&#39;</span></font></div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">OR program.<meta http-equiv="content-type" content="text/html; charset=utf-8">description LIKE &#39;%formula one%&#39;)</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">would capture everything.  I don&#39;t use it since I have never seen the word used rather than the number.</span></font></div>