Yet unknown variables inside array
<p>Is there a way to add some kind of parameters to array (yet unknown variables)? As you can see here, i dont know the userID in advance (before the mysql fetch), so i cant properly form a link leading to edit page.</p>

<pre><code>&lt;?php

$box = array ('1'=&gt;"&lt;a href='edit.php?id=/PROBLEM??/'&gt;edit&lt;/a&gt;",'2'=&gt;'Cannot edit');


while ($row = mysql_fetch_array($something)) {

?&gt;

&lt;tr&gt;
&lt;td&gt;&lt;?php echo $row["Name"]; ?&gt;&lt;/td&gt;
&lt;td&gt;&lt;?php echo $box[$row["editable"]]; ?&gt;&lt;/td&gt;
&lt;/tr&gt;


&lt;?php

}

?&gt;
</code></pre>

<blockquote>
  <p>$row["editable"] returns 1 or 2, depends on database record which
  returns if user is editable or not.</p>
</blockquote>
