Before you all laugh, we all have to learn somewhere, so here's my php code in my argument in Views.

$this_user = db_fetch_array(db_query('SELECT name FROM {users} WHERE uid = %d', $this_uid));

$node_title = $node->title;

if($this_user == $node_title);

But, it's not working. I want to have it set so that the username and the node title return true to validate the argument before it displays the node.

Thanks

Comments

nevets’s picture

Unless you define them, there is no $this_uid or $node defined in the argument handling code.

And I suspect the last line should be return ($this_user == $node_title);