<div dir="ltr">if you want to view to take them into account as using &quot;AND&quot; then return them like so: 12+32+34, if you want it to take them into account as or return them as so 12,32,34.<div><br></div><div>don&#39;t forget to check to box in the argument settings area to accept multiple arguments<br>
<br><div class="gmail_quote">On Sat, Nov 20, 2010 at 3:14 PM, Neil Coghlan <span dir="ltr">&lt;<a href="mailto:neil@esl-lounge.com">neil@esl-lounge.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a view where I have selected User:uid as an argument and I am<br>
using a sql query in the &quot;Provide Default Argument&quot; part. The problem<br>
is, usually, the sql query is passing muliple UIDs back. How would I<br>
pass all of them into the argument to be used by the view.<br>
<br>
At the moment, the view is only taking the first one.<br>
<br>
so, here is a simplified version of my php code:<br>
<br>
global $user;<br>
$result = db_query(&quot;SELECT node.uid FROM {node}<br>
WHERE node.type = &#39;profile&#39;&quot;);<br>
$member = db_fetch_object($result);<br>
return &quot;$member-&gt;uid&quot;;<br>
<br>
on my current db, this returns 3 UIDs...the view only takes the first one.<br>
<br>
Thanks<br>
<br>
Neil<br>
<font color="#888888"><br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br></div></div>