猿问

报错 Parse error: syntax error, unexpected ')', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in C:\

具体代码

<?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">&nbsp;<?php echo $value['id']?></td>

<td bgcolor="#FFFFFF">&nbsp;<?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>


Sober012345
浏览 3951回答 1
1回答
随时随地看视频慕课网APP
我要回答