Forum Moderators: coopster
Here's the code...
<? session_start();
$session_id = session_id();
?>
<?php require_once('Connections/mariz.php');?>
<?php
mysql_select_db($database_mariz, $mariz);
$result = mysql_db_query("mariz","SELECT * FROM table1 WHERE session_id =
'$session_id' ORDER BY votos1 DESC limit 7");
while($row = mysql_fetch_array($result)) {
echo $row["marcas"];
echo $row["votos1"];
}
mysql_free_result($result);
?>
---------------
Thanks,
Manuel
Maybe you could take a look at using $_SESSION [ca2.php.net] and storing the products there so you have them all the way through.