Hyperlink for each record
<p>I need a link for each depotname that will bring up a child window with the details of the last 10 backup status.</p>

<pre><code>while($data=mysql_fetch_array($res))
{
if(is_null($depot_array) || !in_array($data['depotname'],$depot_array        ))
{
$depot_array[$r]=$data['depotname'];
if($data['SCP_status'] &lt;&gt; 'success')
{
echo "&lt;tr id='fail'&gt;";
</code></pre>

<p>The results of the following query should be displayed in a child window.</p>

<pre><code>select * from backup_log where depotname = $data['depotname']
</code></pre>
