Thanks Earnie but I get the following error:<br><br>
The default value php code returned an incorrect value<br>Expected format : <pre>array(<br>  0 =&gt; array(&#39;uid&#39; =&gt; value for uid),<br>  // You&#39;ll usually want to stop here. Provide more values<br>  // if you want your &#39;default value&#39; to be multi-valued :
<br>  1 =&gt; array(&#39;uid&#39; =&gt; value for uid),<br>  2 =&gt; ...<br>);</pre>Returned value :<br><br>So I assume it needs an array and would the $global user already exist?<br><br><div><span class="gmail_quote">On 11/1/07, 
<b class="gmail_sendername">Earnie Boyd</b> &lt;<a href="mailto:earnie@users.sourceforge.net">earnie@users.sourceforge.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Quoting Chris McCreery &lt;<a href="mailto:chris.mccreery@gmail.com">chris.mccreery@gmail.com</a>&gt;:<br><br>&gt; I&#39;m sure this is an easy one for you php coders but I&#39;m a bit confused as to<br>&gt; what is currently populating my dropdown list as it is now.
<br>&gt;<br>&gt; I have created a CCK for user reference, but I would like the default<br>&gt; value(or selected value) of the dropdown list to be the current user but<br>&gt; then list out the other users available, I&#39;m not sure of the code to use for
<br>&gt; the PHP Code portion of the default value.<br>&gt; global $user;<br>&gt; return array(0 =&gt; array(&#39;value&#39; =&gt; $user-&gt;name));<br>&gt;<br><br>&lt;?php<br>global $user<br>$result = db_query(&#39;SELECT name FROM {users} WHERE name != \&#39;%s\&#39;&#39;,
<br>$user-&gt;name);<br><br>$ret[] = $user-&gt;name<br><br>while ($u = db_fetch_object($result)) {<br>$ret[] = $u-&gt;name<br>}<br><br>return $ret;<br>?&gt;<br><br>You might also want to ``ORDER BY name&#39;&#39; when doing the select.
<br><br>Earnie -- <a href="http://for-my-kids.com/">http://for-my-kids.com/</a><br>-- <a href="http://give-me-an-offer.com/">http://give-me-an-offer.com/</a><br><br>--<br>[ Drupal support list | <a href="http://lists.drupal.org/">
http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br>Chris McCreery