Foreground data display processing method:
<?php include ' inc/header.inc.php '?>
<div id= "Main" >
<div class= "title" > Parent Section List </div>
<form method= "POST" >
<table class= "List" >
<tr>
<th> Sort </th>
<th> section name </th>
<th> Operations </th>
</tr>
<?php
$query = "SELECT * from Sfk_father_module";
$result =execute ($link, $query);
while ($data =mysqli_fetch_assoc ($result)) {
$url =urlencode ("father_module_delete.php?id={$data [' ID ']}");
$return _url=urlencode ($_server[' Request_uri ');
$message = "Do you really want to delete the parent section {$data [' module_name ']}?" ";
$delete _url= "confirm.php?url={$url}&return_url={$return _url}&message={$message}";
$html =<<<a
<tr>
<td><input class= "Sort" type= "text" name= "sort[{$data [' ID ']}]" value= "{$data [' sort ']}"/></td>
<td>{$data [' module_name ']}[id:{$data [' ID ']}]</td>
<td><a href= "#" >[access]</a> <a href= "father_module_update.php?id={$data [' ID ']} ">[edit]</a> <a href=" $delete _url ">[Delete]</a></td>
</tr>
A
echo $html;
}
?>
</table>
<input style= "margin-top:20px;cursor:pointer;" class= "btn" type= "Submit" name= "submit" value= "Sort"/>
</form>
</div>
There are a number of treatments here:
The display of the foreground page, the prompt for the delete operation (second confirmation), and the result of the operation.
father_module.php confirm.php
This article is from the "Lone Boat Night House" blog, please be sure to keep this source http://cysky.blog.51cto.com/211942/1704659
Private Library Video Learning notes-small fresh BBS system development technology summed up three