-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheliminar.php
More file actions
60 lines (41 loc) · 1.16 KB
/
Copy patheliminar.php
File metadata and controls
60 lines (41 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php session_start();
if(empty($_SESSION['access']))
{
header("Location: index.php");
}
$usu=$_SESSION['tipo_usu'];
if($usu == 3)
{
header("Location: faltaPermisos.php");
}
else
{
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style2.css" media="screen"/>
<title>Eliminar documento :)</title>
</head>
<body>
<div id="container">
<?php include ("cabecera.php");?>
<?php include ("lateral.php"); ?>
<?php include ("conexion.php");?>
<div id="main">
<?php
$valor= $_GET['nombre'];
$criterio = $_GET['criterio'];
$qry="Delete FROM documentos WHERE Nombre ='$valor';";
$conexion=mysqli_connect($host,$user,$password,$dbname)
or die("no se pudo contectar al servidor");
$result=mysqli_query($conexion,$qry) or die(mysqli_error($conexion));
$_SESSION['verCriterio'] = $criterio;
echo $criterio;
header("Location: Ver.php");
?>
</div><!--fin del div = main-->
</div><!--fin del div = container -->
</body>
</html>
<?php }?>