En PHP con IIs no identifica variables
Publicado por sandra rodriguez ardila (2 intervenciones) el 09/05/2012 01:41:49
Buenas noches,
tengo el siguiente inconveniente: tengo un aplicativo desarrollado en php con IIIS, pero me sale el siguiente errror:
otice: Undefined variable: perfil in C:\Inetpub\wwwroot\call\ingreso.php on line 105
Pérfil Usuario Call Center
Notice: Undefined variable: perfil in C:\Inetpub\wwwroot\call\ingreso.php on line 113
Notice: Undefined variable: perfil in C:\Inetpub\wwwroot\call\ingreso.php on line 121
A continuación envio el codigo:
No se que me hace falta configurar. Les agradecería muchisimo que me dieran una manito
tengo el siguiente inconveniente: tengo un aplicativo desarrollado en php con IIIS, pero me sale el siguiente errror:
otice: Undefined variable: perfil in C:\Inetpub\wwwroot\call\ingreso.php on line 105
Pérfil Usuario Call Center
Notice: Undefined variable: perfil in C:\Inetpub\wwwroot\call\ingreso.php on line 113
Notice: Undefined variable: perfil in C:\Inetpub\wwwroot\call\ingreso.php on line 121
A continuación envio el codigo:
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?php
require_once('Connections/callcenter.php');
require_once('functions/funciones.php');
$currentPage = $_SERVER["PHP_SELF"];
session_start();
$colname_usuario = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_usuario = (get_magic_quotes_gpc()) ? $_SESSION['MM_Username'] : addslashes($_SESSION['MM_Username']);
}
mysql_select_db($database_callcenter, $callcenter);
$query_usuario = sprintf("SELECT * FROM tb_usuarios WHERE log_user = '%s'", $colname_usuario);
$usuario = mysql_query($query_usuario, $callcenter) or die(mysql_error());
$row_usuario = mysql_fetch_assoc($usuario);
$totalRows_usuario = mysql_num_rows($usuario);
$fecha = date('Y-m-d');
$hora = date('H:i:s');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<?php
echo Cabecera();
?>
<body>
<table width="100%" border="0">
<tr>
<td align="center" valign="middle" >
<table class="Marco" border="0" cellpadding="0" cellspacing="0">
<tr>
<th height="65" colspan="2" align="right" bgcolor="#FFFFFF" scope="col">
<?include ("include/cabecera.php")?>
</th>
</tr>
<tr>
<?include ("include/menu.php")?>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#FFFFFF">
<table width="770" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<th width="7" height="416"></th>
<th width="756" valign="top" class="Marco"><div align="left">
<p align="justify"><br>
<br>
Bienvenido: <span class="Estilo18"><?php echo $row_usuario['nom_user']; ?></span></p>
<p align="justify">Usted ha ingresado con
<?php
if ($perfil == 0)
{
echo "Pérfil Usuario Call Center";
}
if ($perfil == 2)
{
echo "Pérfil Usuario Back";
}
if ($perfil == 1)
{
echo "Pérfil Administrador";
}
?>
al Call Center de Contingencias de SPN. </p>
<p align="right">Si desea terminar la sesión de <a class="menu3" href="<?php echo $KT_Logout?>">click aquí</a></p>
<p align="right"> </p>
</div></th>
<th width="7"></th>
</tr>
<tr>
<th height="14"></th>
<th></th>
<th></th>
</tr>
<tr>
<?php include ("include/pie.php") ?>
</tr>
</table> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<?php
//mysql_free_result($usuario);
?>
No se que me hace falta configurar. Les agradecería muchisimo que me dieran una manito
Valora esta pregunta


0