Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2009 at 16:14 UTC
Updated:
23 Jul 2010 at 22:40 UTC
This is my first post and I have no idea if I put this in the right place, so im sorry if i did not but please bear with me.
I am trying to use a while loop to call views by passing the view a user id as an argument. My code looks like this:
$query = "SELECT * FROM {users}, {users_roles} WHERE {users_roles}.rid = '6'";
$result = db_query($query);
while ($row = db_fetch_array($result)){
?>
[view:dashboard== $row['uid']; ]
}
It is inside of a page. Is this functionality even possible or am I just not able to get it working?
Comments
Comment #1
chrisgadz commentedSorry that posted kind of awkward...
[view:dashboard==
$row['uid'];]Comment #2
dawehnerDo you want to generate some default arguments? I guess you could use the code there.
Comment #3
dawehnerNo answer since long time.
This can be done for example with default arguments.