Ver Mensaje Individual
  #25 (permalink)  
Antiguo 08/01/2013, 08:53
juaarias
 
Fecha de Ingreso: octubre-2012
Ubicación: Rio Cuarto,Cordoba,Argentina
Mensajes: 139
Antigüedad: 11 años, 6 meses
Puntos: 0
Respuesta: asignacion de valor de input

me surge este error: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1, creo que me dice error de sintaxis cerca a la linea 1, pero es esto lo que tengo:
Código PHP:
Ver original
  1. <?php
  2. /**
  3.  *  UBIQUITI CENTER ADMIN Release 2.0.0
  4.  *
  5.  *  by MKE Solutions | http://mikrotikexpert.com*
  6.  *
  7.  *(C) Derechos Reservados. No se permite su distribución
  8.  *  TODO:
  9.  *
  10.  *
  11.  * v 2.0.0 initial
  12.  *
  13.  *
  14.  *
  15.  */
  16. /* FUNCIONES DECLARADAS*/
  17. //error_reporting(E_ALL);
  18. error_reporting(E_PARSE);
  19. $DEBUG_MODE=true;
  20. //$DEBUG_MODE = false;
  21. /* CARGA DE CONFIGURACION GENERAL */
  22. //**  Archivos de configuracion
  23. include_once ("../share/database_config.php");
  24. include_once ("../share/config.php");
  25. //** Funciones y clases
  26. require_once ("../share/class.phpmailer.php");
  27. require_once ("../share/function.php");
  28. require_once ("../share/function_ubntcenter.php"); //Funciones especiales propias de ubnt center
  29. /* LIMPIO PARA EVITAR INJECTION */
  30.     stripslashes_deep($_GET);
  31.     stripslashes_deep($_POST);
  32.     stripslashes_deep($_REQUEST);
  33. }
  34. /* EOF LIMPIO PARA EVITAR INJECTION */
  35. /* EOF CARGA DE CONFIGURACION GENERAL */
  36. // calculate the base path of the program
  37. //@ob_start("comprimir_pagina");
  38. ini_set('session.bug_compat_warn', 0);
  39. ini_set('session.cookie_lifetime', 9640);
  40. //ini_set('session.save_path', '/tmp');  
  41. //session_save_path('/tmp/sessions/');
  42. @session_name("UBNTCENTERADMIN");
  43. mysql_con();
  44. ?>
esas son varias lineas del comienzo
__________________
Juan Pablo A. S.