Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/11/2014, 00:35
giuliano130
 
Fecha de Ingreso: noviembre-2014
Mensajes: 4
Antigüedad: 9 años, 5 meses
Puntos: 0
Respuesta: Problema en servidor You have an error in your SQL syntax; check the manua

Hola amigo! Muchas gracias por respoder!

Te paso la consulta a la base de datos, como comentaba cuando hago pruebas en el servidor local no presenta fallas:

f (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($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;
}
}

mysql_select_db($database_conexioncel, $conexioncel);
$query_datos_service = "SELECT * FROM tblsoportetecnico";
$datos_service = mysql_query($query_datos_service, $conexioncel) or die(mysql_error());
$row_datos_service = mysql_fetch_assoc($datos_service);
$totalRows_datos_service = mysql_num_rows($datos_service);
?>


Muchas gracias!