Hola como andan estoy teniendo problemas por que se actualizo el php del servidor a la version 5.3.x y me el siguiente error cuando quiero llamar a un listado de noticias.
el error que da es
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 ') ORDER BY nombre' at line 3
el codigo de la pagina es
<?php
require_once('Connections/cnx_vac.php');
require_once("modulo_sesiones.php");
$consulta= " ";
if($idiomas !== "0") $consulta =" && (idioma=$idiomas)";
mysql_select_db($database_cnx_vac, $cnx_vac);
$query_rsTabla = "SELECT * FROM tablas WHERE mostrada=1 $consulta ORDER BY nombre ASC";
$rsTabla = mysql_query($query_rsTabla, $cnx_vac) or die(mysql_error());
$row_rsTabla = mysql_fetch_assoc($rsTabla);
$totalRows_rsTabla = mysql_num_rows($rsTabla);
function smrFormatStr($var1)
{
$cadena = $var1;
$cadena = str_replace( "_"," " , $cadena );
return($cadena);
}
?>
<html>
<head>
<link href="styles.css" rel="stylesheet" type="text/css">
<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<script src="funciones.js"></script>
<script>
function llama_notas(objeto)
{
if(objeto.value)
window.location.href= "lista_noticias.php?tabla=categoria_"+objeto.value ;
}
</script>
<title>Administrador </title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<?php
echo '<table width="100%" bordercolor="#FFFFFF">
<tr> ';
for( $i=97 ; $i <= 122 ; $i++)
{
echo
'<td class="botonera" nowrap
onClick=location.href('.chr(39).'lista_categorias. php?letra='.chr($i).chr(39).') ;
onMouseOver=cambia_estilo(this,"botonera_titulo"," hand");
onMouseOut=cambia_estilo(this,"botonera","hand");
>
<p class="cintillo" align="center">
'.chr($i-32).'
</p>
</td>
';
};
echo '</tr></table>
';
?><br>
</div>
<div align="center">
<input name="Submit" type="button" class="boton_estatico" onClick="location.href('lista_categorias.php');" value="Ver Todas">
<br>
</div>
<table width="333" border="0" align="center" cellspacing="2">
<tr>
<td height="35" class="botonera">
<div align="center" class="relacionadas">Categorias </div></td>
</tr>
<tr>
<td height="204" class="botonera"> <div align="center">
<select name="categorias" size="20">
<?php do { ?>
<option value="<?php echo $row_rsTabla['nombre']; ?>"><?php echo strtoupper(smrFormatStr($row_rsTabla['nombre'])); ?></option>
<?php } while ($row_rsTabla = mysql_fetch_assoc($rsTabla)); ?>
</select>
</div></td>
</tr>
<tr>
<td height="5" > </td>
</tr>
<tr>
<td height="35" class="botonera">
<div align="center">
<input name="selecciona_categoria" type="button" class="boton_estatico" onClick="llama_notas(window.categorias);" value="Entrar">
</div></td>
</tr>
</table>
</body>
</html>
<?php
mysql_free_result($rsTabla);
?>
gracias de antemano por la ayuda
slds