[Solved] Making a delete.php file, code give me error


Your syntax is wrong. Why are you putting all the condition inside brackets.

$id=(isset($_REQUEST['grants_id']) ? $_REQUEST['grants_id'] : '');

replace this line from the below line.

    $id = (isset($_REQUEST['grants_id'])) ? $_REQUEST['grants_id'] : 0;
    if($id > 0){
      // your code
    }

solved Making a delete.php file, code give me error