-
Notifications
You must be signed in to change notification settings - Fork 0
/
insere.php
77 lines (35 loc) · 878 Bytes
/
insere.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
<?php
session_start();
require_once('conectar.php');
$dia = $_POST['dia'];
$mes = $_POST['mes'];
$estab = $_POST['estab'];
$local = $_POST['local'];
$hora = $_POST['time'];
$tel = $_POST['tel'];
$link = $_POST['link'];
mysql_select_db($nome_banco,$conexao);
$sql = "Insert into agenda(dt_dia, dt_mes, nm_lugar, nm_end,hr_horario, cd_tel, nmInfo) Values('$dia', '$mes', '$estab', '$local', '$hora', '$tel', '$link' );";
$sql2 = mysql_query($sql, $conexao)or die(mysql_error());
if($sql2){
echo "incluido com sucesso";
}else{
echo "falha ao incluir os dados";
}
header('location:adm.php');
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Documento sem título</title>
</head>
<?php
session_start();
$_SESSION["nome"] = $nome;
$_SESSION["senha"] = $senha;
echo '<a href="adm.php">Voltar</a>';
?>
<body>
</body>
</html>