(If you are familiar with Memcached, better) can take a look at the img.
on the third column (named 'Value'), I need to put a 'button/link' that when clicked it will display/hide the content of the cell. In a sort of javascript 'toggle' function. (i'm not sure which to use: found a nice mootools styling here but i'm stuck on how to use it in this script.
Can you help me modify this table, for the third column to display the result when a button in this cell is clicked (and then click again and hide it)?
Here is the snippet for the table:
$a = getMemcacheKeys();
echo "<table class='prettytable'><tr><th>Key</th><th>Date Set</th><th>Value</th></tr>";
foreach ($a as $key => $v)
{
if (count($v) == 3)
echo "<tr><td>{$key}</td><td>" . date('r',$v[1]) . "</td><td class='button'><pre>" . print_r($v[3],1) . "</pre></td></tr>\n";
}
echo "</table>";
thanks