Hello to everyone in this fantastic club , Im amira from morocco , iam new to the forum ,all i need a little help here ,When a was creating a little code in php/mysql i wanted to know how to built a php form to delete an item from database and thank's alot <3
the first code is index.php the goal of the script is to gather information about the Visitor's of my wesite because i have a war with Leet hackers who want to deface my website and im a new is this domain ,
<?php
$getting_ips = mysql_query("SELECT * FROM ip_capture_module");
if ($getting_ips) {
while ($row = mysql_fetch_array($getting_ips)) {
?>
<tr>
<td><?php echo $row['id']; ?></td>
<td><strong><? echo $row['country']; ?></strong></td>
<td><?php echo $row['browser']; ?></td>
<td><a href="http://<?php echo $row['ipaddr']; ?>"><?php echo $row['ipaddr']; ?></a></td>
<td><?php echo $row['method']; ?></td>
<td><strong><?php echo $row['sploit']; ?></strong></td>
<td><?php echo $row['date']; ?></td>
<td><a href="delete.php">delete</a></td>
</tr>
<?php
// The Second Code is capture.php
------------------------------------------------------------------------------------------
...
....
mysql_query("INSERT INTO ip_capture_module(country,browser,ipaddr,method,date) VALUES(
'$country_name',
'$browser',
'$ip',
'$method',
CURRENT_TIMESTAMP())") or die ("<br>Error in inserting in IP: ".mysql_error()."<br>");