working w/ code that searches mySQL db but want to update as well
im sorry you did bring out a couple of mistakes that i had.
1) this is the correct way to display your table.
PHP Code:
<tr bgcolor='$row_color'>
<td>".$row['tn']."</td>
<td>".$row['acct_number']."</td>
<td>".$row['port']."</td>
<td>".$row['fqdn']."</td>
<td><a href=\"page.php?id=$id\">Update</a></td>
<td><a onClick=\"return confirm("Are You Sure?")\" href=\"page.php?action=del&id=$id\">Delete</a></td>
</tr>
2) In this one i had "$table", but just put your table name there
PHP Code:
if($_REQUEST['action']=="del") {
mysql_query("DELETE FROM tablename WHERE id={$_REQUEST['id']};");
}
And yes there shouldnt be (2) == signs because that would mean nothing