This is the adminuses.php I am trying to insert and delete data from the database. It shows the following error.
Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\Library Management\adminuses.php on line 4
adminuses.php
<?php
include ("connection.php");
if (isset($_POST['passbookid'])
{
$id= $_POST['passbookid'];
$query= "delete from passbook where pid ='".$id."'";
$result = mysqli_query($sql, $query);
if ($result)
{
header('location:adminlogin.php');
}
}