I am trying to create a url bookmark script for my own use.
Here's the code.
<?php
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("delicious") or die(mysql_error());
$data = mysql_query("SELECT * FROM stacks") or die(mysql_error());
if(mysql_num_rows($data)) {
echo '<table cellpadding="0" cellspacing="0" class="db-table">';
echo '<tr><th>No</th><th>Name</th><th>URL</th></tr>';
while($row2 = mysql_fetch_row($data))
{
echo '<tr>';
foreach($row2 as $key=>$value)
{
echo '<td>',$value,'</td>';
}
echo '</tr>';
}
echo '</table><br />';
}
?>
I am not sure how to make it clickable. Any ideas?