Notice: Undefined index in C:\wamp64\www\msyqli\delete\delete.php on line 4: id
1分之二
1分之二 2018-02-13 20:16:29
0
0
1591


<?php
include_once("conn\conn.php");//Connect to the database file
$sql="select * from padd order by id desc";//Query this Data in the table
$result=mysqli_query($connID,$sql);//Execute the data and assign the value to $result

if ($result && mysqli_num_rows($result) ) {
/*If the sql query statement is correct, $result is true. Not only the $reslut function is judged, but also the number of rows queried is judged. */
echo '<form action="delete.php" method="post">';
echo '<table width="800" border="1">';
while ($row = mysqli_fetch_assoc($result)) {
echo '<tr>';
echo '<td><input type="checkbox" name="id[]" value= "' . $row['id'] . '" /></td>';
          echo '<td>' . $row['name'] . '</td>';

                 echo '<td>' . long2ip($row['pad']) . '</td>';
                                  echo '<td>' . long2ip($row['pad']) . php?id=' . $row['id'] . '">Edit user</a></td>';
                                    echo '<td><a href="delete.php ?id=' . $row['id'] . '">Delete user</a></td>';
                                                     echo '< echo '</table>';
echo '<input type="submit" value="Delete" />';
echo '</form>';

} else {
echo 'No data';
}




mysqli_close($connID);
?>



1分之二
1分之二

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template