PHP - no me genera el cambio de edicion

 
Vista:

no me genera el cambio de edicion

Publicado por nicolas (4 intervenciones) el 22/06/2016 14:24:56
buenos dias, estoy teniendo un problema y no encuentro el error, resulta ser que tengo un php de edicion de administrador para un slider, a la hora de cargar los datos en el form1 para editar cuando hago click en actualizar registro no pasa nada. pongo a continuacion el codigo complete del php de edicion
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
<?php require_once('../Connections/conexionlabapa.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
	global $conexionlabapa;
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }
 
  $theValue = function_exists("mysqli_real_escape_string") ? mysqli_real_escape_string($conexionlabapa,$theValue) : mysqli_escape_string($conexionlabapa,$theValue);
 
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}
$varDato_DatosSlider = "0";
if(isset($_GET["recordID"])){
	$varDato_DatosSlider = $_GET["recordID"];
}
 
mysqli_select_db($conexionlabapa,$database_conexionlabapa);
$query_DatosSlider = sprintf("SELECT * FROM tblslider WHERE tblslider.idcontador= %s", GETSQLValueString($varDato_DatosSlider,"int"));
$DatosSlider = mysqli_query($conexionlabapa,$query_DatosSlider) or die(mysqli_error($conexionlabapa));
$row_DatosSlider = mysqli_fetch_assoc($DatosSlider);
$totalRows_DatosSlider = mysqli_num_rows($DatosSlider);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/plantillaadmin.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Administraci&oacute;n Laboratorio APA</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link href="../css/estiloadmin.css" rel="stylesheet" type="text/css" />
</head>
 
<body>
 
<div class="container">
  <div class="header">
  <?php include("../includes/cabecera_admin.php"); ?>
  </div>
  <div class="sidebar1">
  <?php include("../includes/menuizquierda_admin.php"); ?>
 
    <!-- end .sidebar1 --></div>
  <div class="content"><!-- InstanceBeginEditable name="Partederechaadmin" -->
 
    <script>
  function subirimagen(nombrecampo)
  {
	  self.name="opener";
	  remote=open('gestionimagen.php?campo='+nombrecampo,'remote','width=400,height=150,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes,fullscreen=no,status=yes');
	  remote.focus();
  }
  </script>
    <h1>Editar Datos</h1>
    <p>&nbsp;</p>
   <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
      <table width="491" align="center">
        <tr valign="baseline">
          <td width="159" align="right" nowrap="nowrap">Imagen Grande :</td>
 
          <td width="265"><input type="text" name="strimagengrande" value="<?php echo htmlentities($row_DatosSlider['strimagengrande'],ENT_COMPAT,'iso-8859-1');?>" size="20" /><input type="button" name="button" id="button" value="Subir Imagen" onclick="javascript:subirimagen('strimagengrande');"/>(738x250px)</td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Imagen Peque&ntilde;a :</td>
          <td><input type="text" name="strimagenpequena" value="<?php echo htmlentities($row_DatosSlider['strimagenpequena'],ENT_COMPAT,'iso-8859-1');?>" size="20" /><input type="button" name="button2" id="button2" value="Subir Imagen" onclick="javascript:subirimagen('strimagenpequena');"/>(80x50px)</td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Titulo:</td>
          <td><input type="text" name="strtitulo" value="<?php echo htmlentities($row_DatosSlider['strtitulo'],ENT_COMPAT,'iso-8859-1');?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Subtitulo:</td>
          <td><input type="text" name="strsubtitulo" value="<?php echo htmlentities($row_DatosSlider['strsubtitulo'],ENT_COMPAT,'iso-8859-1');?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Menu:</td>
          <td><input type="text" name="strmenu" value="<?php echo htmlentities($row_DatosSlider['strmenu'],ENT_COMPAT,'iso-8859-1');?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Link:</td>
          <td><input type="text" name="strlink" value="<?php echo htmlentities($row_DatosSlider['strlink'],ENT_COMPAT,'iso-8859-1');?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Orden:</td>
          <td><input type="text" name="intOrden" value="<?php echo htmlentities($row_DatosSlider['intOrden'],ENT_COMPAT,'iso-8859-1');?>" size="5" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Estado:</td>
          <td><Select name="intEstado">
          <option Value="1"<?php if(!(strcmp(1,htmlentities($row_DatosSlider['intEstado'],ENT_COMPAT,'iso-8859-1')))){echo "SELECTED";}?>>ACTIVO</option>
          <option Value="0"<?php if(!(strcmp(0,htmlentities($row_DatosSlider['intEstado'],ENT_COMPAT,'iso-8859-1')))){echo "SELECTED";}?>>INACTIVO</option>
          </Select></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">&nbsp;</td>
          <td><input type="submit"  value="Actualizar Registro" /></td>
      </tr>
     </table>
     <input type="hidden" name="MM_insert" value="form1">
      <input type="hidden" name="MM_update" value="form1"/>
      <input type="hidden" name="idcontador" value="<?php echo $row_DatosSlider['idcontador'];?>"/>
 
    </form>
 
    <p>&nbsp;</p>
 
  <!-- InstanceEndEditable -->    <!-- end .content --></div>
 
  <div class="footer">
  <?php include("../includes/pie_admin.php"); ?>
    <p>&nbsp;</p>
    <!-- end .footer --></div>
  <!-- end .container --></div>
</body>
<!-- InstanceEnd --></html>
<?php
mysqli_free_result($DatosSlider);
?>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

no me genera el cambio de edicion

Publicado por DAVID (129 intervenciones) el 25/06/2016 11:08:42
Hola,
Con esto no podemos ayudarte. Debes ser un poco mas explicito, porque así es difícil. Entre otras cosas porque no podemos ejecutar tu código, y por tanto no podemos saber cual es el problema. :-/
No te da ningún error?? No puedes darnos acceso a ver la ejecución de la aplicación??

Un saludo,
David
paginas web economicas
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar