Una idea sobre algo me iria bien ,muchas gracias.
Código PHP:
<?php
$hostname = "";
$database = "";
$username = "";
$password = "";
$connection = mysql_pconnect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR);
?>
<?php
mysql_select_db($database, $connection);
$qry = "SELECT * FROM catalogo WHERE exist IN(1,0) and (categoria='Frutas' or categoria='Frutas_por_piezas') order by producto asc";
$limite_columna1 = sprintf("%s LIMIT %d, %d", $qry, 0,8);
$resultados1 = mysql_query($limite_columna1, $connection) or die(mysql_error());
$columna1 = mysql_fetch_assoc($resultados1);
$limite_columna2 = sprintf("%s LIMIT %d, %d", $qry, 8, 8);
$resultados2 = mysql_query($limite_columna2, $connection) or die(mysql_error());
$columna2 = mysql_fetch_assoc($resultados2);
?>
<form id="form1" name="form1" method="post" action="Untitled-2.php">
<input type=hidden name=id value=<?php echo $columna1['id']; ?>>
<table width="344" align="center" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;">
<?php
//mostramos todos nuestros
//artículos, viendo si han
//sido agregados o no a nuestro
//carro de compra
do {
?>
<tr valign="middle" class="catalogo" bgcolor="<?php echo $color; ?>">
<td width="120" rowspan="3" style="font-size:12px"><?php echo $columna1['cant']; ?> <?php echo $columna1['producto']; ?>
<input name="cant[]" type="text" id="cant" value="" size="1">
<input name="producto[]" type="text" id="producto" value="" size="20">
<?php echo $columna1['precio']; ?>
<input name="precio[]" type="text" id="precio" value="" size="1">
€
<?php echo $columna1['unidades']; ?>
<input name="unidades" type="text" id="unidades" value="" size="5">uni
</td>
</tr>
<?php } while ($columna1 = mysql_fetch_assoc($resultados1)); ?>
</table>
<table width="344" align="center" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;">
</tr>
<?php
//mostramos todos nuestros
//artículos, viendo si han
//sido agregados o no a nuestro
//carro de compra
do {
?>
<tr valign="middle" class="catalogo" bgcolor="<?php echo $color; ?>">
<td width="120" rowspan="3" style="font-size:12px"><?php echo $columna2['cant']; ?> <?php echo $columna2['producto']; ?>
<input name="cant[]" type="text" id="cant" value="" size="1">
<input name="producto[]" type="text" id="producto" value="" size="20">
<?php echo $columna2['precio']; ?>
<input name="precio[]" type="text" id="precio" value="" size="1">
€
<?php echo $columna2['unidades']; ?>
<input name="unidades" type="text" id="unidades" value="" size="5">uni
</td>
</tr>
<?php } while ($columna2 = mysql_fetch_assoc($resultados2)); ?>
</table>
<input type="submit" name="Submit" value="Cambiar" style="font-size: 10px"/>
</form>