-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheliminar_reg.php
108 lines (88 loc) · 3.71 KB
/
eliminar_reg.php
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/materialize.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body style="color: #F47920;">
<!-- Dropdown Structure -->
<ul id="dropdown1" class="dropdown-content">
<li><a href="Lectura1.html">MySQL</a></li>
<li><a href="Lectura2.html">Conexión BD</a></li>
<li><a href="Lectura3.html">Guardar Registros</a></li>
<li><a href="Lectura4.html">Consultar Registros</a></li>
<li><a href="Lectura5.html">Eliminar Registros</a></li>
</ul>
<nav style="background-color: #005883;">
<div class="nav-wrapper" style="margin-left: 20px; ">
<a href="index.html" class="brand-logo" ><b>ECBTI</b></a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="index.html">Inicio</a></li>
<li><a class="dropdown-trigger" href="#" data-target="dropdown1">Lecturas<i class="material-icons right">arrow_drop_down</i></a></li>
<li><a href="Multimedia.html">Multimedia</a></li>
<li><a href="Autor.html">Autor</a></li>
</ul>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col s9">
<!-- Grey navigation panel -->
<div class="col s12">
<?php
require 'config.php';
$registros=mysqli_query($con, "select cc from estudiantes where cc='$_POST[cedula]'") or
die("Problemas en el select:".mysqli_error($con));
if ($reg=mysqli_fetch_array($registros))
{
mysqli_query($con,"delete from estudiantes where cc='$_POST[cedula]'") or
die("Problemas en el select:".mysqli_error($con));
echo "<h5>Se efectuó el borrado de la cedula</h5>";
}
else
{
echo "<h5>No existe un cedula en la base de datos</h5>";
}
mysqli_close($con);
?>
<a style="background-color: #005883;" href="eliminar.php" class="waves-effect waves-light btn">Regresar</a>
</div>
</div>
<!--menu sidebar-->
<div class="col s3">
<h2><img src="img/logo_vertical.png"></h2>
<a class="twitter-timeline" data-height="400" href="https://twitter.com/UniversidadUNAD?ref_src=twsrc%5Etfw">Tweets by UniversidadUNAD</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<h5 style="color: #F47920;">Visitas</h5>
<a href="https://www.contadorvisitasgratis.com" title="contador de visitas gratis"><img src="https://counter11.allfreecounter.com/private/contadorvisitasgratis.php?c=ny27wpzpfeuqwydnzqtb8zt5z2nqcndq" border="0" title="contador de visitas gratis" alt="contador de visitas gratis"></a>
</div>
</div>
</div>
<!-- pie de pagina-->
<footer class="page-footer" style="background-color: #005883;">
<div class="container">
<div class="row">
<div class="col s12">
<h5 class="white-text" style="color: #F47920;">Universidad Nacional Abierta y a Distancia</h5>
<p class="grey-text text-lighten-4">Escuela de Ciencias Básicas, Tecnología e Ingeniería</p>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">© 2014 Copyright Text
<a class="grey-text text-lighten-4 right" href="https://www.unad.edu.co/">Visitenos</a>
</div>
</div>
</footer>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<script type="text/javascript" src="js/materialize.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.sidenav').sidenav();
$('.dropdown-trigger').dropdown();
$('.materialboxed').materialbox();
});
</script>
</body>
</html>