Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/08/2008, 14:58
Avatar de Pablo Ayala
Pablo Ayala
 
Fecha de Ingreso: septiembre-2005
Ubicación: Cancún, México
Mensajes: 231
Antigüedad: 18 años, 8 meses
Puntos: 28
Respuesta: Ayuda con paso de variables

Muchas gracias... toy casi seguro de que toy muy cerca... con lo que me dijiste que haga me funcione bien, cuando 1 es un valor constante, pero si es una variable... pasa lo siguiente:

Código PHP:
$cadena2 "tiempo not like CONVERT(_utf8'" .$valor"'USING latin1) COLLATE latin1_swedish_ci";

$pasa_tiempo urlencode("$cadena2"); 

echo 
"<th scope=col><a href='$PHP_SELF?pg=".$url."&tiempo= ".$pasa_tiempo."'><FONT COLOR='blue'>Siguiente &raquo</a></th>"

Al recuperar en la pagina "resultados.php", la variable tiempo la lee asi:

"tiempo not like CONVERT(_utf8\'1\'USING latin1) COLLATE latin1_swedish_ci"

Y deberia ser:

"tiempo not like CONVERT(_utf8 '1' USING latin1) COLLATE latin1_swedish_ci"

___________

Ya que al tratar de ejecutarla en mysql, me dice:

Invalid query: 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 '\'1\'USING latin1) COLLATE latin1_swedish_ci LIMIT 3, 3' at line 1


MUCHAS GRACIAS... SABRAS QUE ES?
__________________
Atentamente,

Pablo Ayala.
Si vas a responder algo en el foro que sea con amabilidad.