我试图使用 php 删除一个 mysql 文件,这是按下删除后的代码,没有任何想法?
删除.php
<?php
include("db.php");
$id =$_REQUEST['PlayerID'];
// sending query
mysql_query("DELETE FROM Player WHERE PlayerID = '$id'")
or die(mysql_error());
header("Location: usersOnline.php");
?>
从单独的文件在这里调用它
echo"<td><font face = 'Verdana' size = '3' color='black'> <a href ='del.php?Player=$id'><center>Delete</center></a>";