Hola jpinedo,
Te envié el email porque no sabia que habías visto este tema y me estabas contestando. Gracias.
He hecho lo que me dices y me sale un
Parse error en la línea del array.
Si quito el array no me sale el error, pero sigo teniendo el mismo problema de antes .
Te vuelvo a poner el código por si ves donde puede estar el problema.
Código PHP:
<?php
require("src/connect.php");
$_pagi_sql = "select Nombre,Composicion,Presentacion,Fabricante,Familia,PrecioVenta from producto,fabricante,familia where producto.Nombre like '".$_REQUEST["hSort"]."%' and fabricante.IdFabricante=producto.IdFabricante and familia.IdFamilia=Producto.IdFamilia order by producto.Nombre";
BEGIN__VBULLETIN__CODE__SNIPPET $_pagi_propagar = array('hSort');
$_pagi_cuantos=10;
include("paginator.inc.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Lista de Precios;</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../CSS/stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="800" border="0" align="center" class="brdr">
<tr>
<td colspan="2" align="center" class="titulo" height="30">Lista de Precios</td>
</tr>
<tr>
<td colspan="2" class="separador"><hr size="1"></td>
</tr>
<tr>
<td colspan="2" align="center" valign="top" class="letras">
<?
for($i=0;$i<=25;$i++)
{?>
<a href="#" onClick="return submitForm(frmContact,'<?=chr(65+$i);?>','Sorting');">
<? echo(chr(65+$i)." ");?></a>
<? }
?>
</tr>
<tr>
<td colspan="2" class="separador"><hr size="1"></td>
</tr>
<tr>
<td colspan="2" valign="top" class="lista"> <form action="" method="post" name="frmContact" id="frmContact">
<table width="100%" border="0" cellspacing="0">
<tr>
<td width="18%" class="titulo_lista">Nombre</td>
<td width="30%" class="titulo_lista">Composición</td>
<td width="17%" class="titulo_lista">Presentación</td>
<td width="10%" class="titulo_lista">Fabricante</td>
<td width="17%" align="center" class="titulo_lista">Familia</td>
<td width="8%" align="center" class="titulo_lista">Precio</td>
</tr>
<tr>
<td colspan="6" class="separador"><hr size="1"></td>
</tr>
<? while($row=mysql_fetch_array($_pagi_result)){ ?>
<tr>
<td width="18%" class="lista">
<?=$row["Nombre"];?>
</td>
<td width="30%" class="lista">
<?=$row["Composicion"];?>
</td>
<td width="17%" class="lista">
<?=$row["Presentacion"];?>
</td>
<td width="10%" class="lista">
<?=$row["Fabricante"];?>
</td>
<td width="17%" align="center" class="lista">
<?=$row["Familia"];?>
</td>
<td width="8%" align="center" class="lista">
<?=$row["PrecioVenta"];?>
</td>
</tr>
<? } ?>
</table>
<input type="hidden" name="hABId" id="hABId">
<input type="hidden" name="hSort" id="hSort" value="[A-Z]">
<input type="hidden" name="hExtra" id="hExtra" value="">
</form>
<script language="JavaScript">
function submitForm(obj,myVal,actionStr)
{
obj.hABId.value=myVal;
if(actionStr=='Sorting')
{
actionStr = ".";
obj.hSort.value=myVal;
}
obj.action=actionStr;
obj.submit();
}
</script> </td>
</tr>
</table>
<table>
<tr>
<td><?php echo"<p>".$_pagi_navegacion."<p>"; ?>
</td>
</tr>
</table>
</body>
</html>
Gracias
Salu2