具体代码
<?php
require_once('connect.php');
$sql="select*from movie order by dateline desc";
$query=mysql_query($sql);
if($query&&mysql_num_rows($query)){
while($row=mysql_fetch_assoc($query)){
$data[]=$row;
}
}else{
$data=array();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<td width="837" valign="top" bgcolor="#FFFFFF"><table width ="743" border="0"
cellpadding="8" cellspacing="1" bgcolor="#000000">
<tr>
<td colspan="3" align="center" bgcolor="#FFFFFFF">电影管理列表</td>
</tr>
<tr>
<td width="37" bgcolor="#FFFFFF">编号</td>
<td width="572" bgcolor="#FFFFFF">电影名字</td>
<td width="82" bgcolor="#FFFFFF">操作</td>
</tr>
<?php
if(!empty(data)){
foreach($data as $value){
?>
<tr>
<td bgcolor="#FFFFFF"> <?php echo $value['id']?></td>
<td bgcolor="#FFFFFF"> <?php echo $value['title']?></td>
<td bgcolor="#FFFFFF"><a href="movie.del.Handle.php?id=<?php echo $value['id']?>">删除</a>
<a href="movie.modify.php?id=<?php echo $value['id']?>">修改</a></td>
</tr>
<?php
}
}
?>
</body>
</html>