è da poco che sto imaparando
guarda il codice completo
codice:
<?php echo $row_cerca['IDProdotto']; ?>
<?php require_once('../Connections/connessione.php'); ?>
<?php
$colname_Recordset1 = "1";
if (isset($_GET['cerca'])) {
$colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['cerca'] : addslashes($_GET['cerca']);
}
mysql_select_db($database_connessione, $connessione);
$query_Recordset1 = sprintf("SELECT * FROM prodotti WHERE IDProdotto = %s", $colname_Recordset1);
$Recordset1 = mysql_query($query_Recordset1, $connessione) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
&totale=<?php echo $totalRows_Recordset1?><?php do {?>&prodotto<?php echo $row_Recordset1['IDProdotto'];?>=<?php echo $row_Recordset1['Prodotto'];?>&id<?php echo $row_Recordset1['IDProdotto'];?>=<?php echo $row_Recordset1['IDProdotto'];?>&DescrizioneProdotto<?php echo $row_Recordset1['IDProdotto'];?>=<?php echo $row_Recordset1['Descrizione'];?>&PrezzoUnitario<?php echo $row_Recordset1['IDProdotto'];?>=<?php echo $row_Recordset1['Prezzo'];?>&quantit<?php echo $row_Recordset1['IDProdotto'];?>=<?php echo $row_Recordset1['quantit'];?>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));?><?php mysql_free_result($Recordset1);
?>