Hi, I don't know PHP..i use dreamweaver and now i realise it is far from
enough.
This code selects from a previous page where the users entered some votes
and select the 7 products they vote the most.
I want to be able to make them vote again but with the same products for a
different question.
If i could echo each of the results from the query, i could insert each of
the votes to a new table in the DB (MySql).
Here's the code...
<? session_start() ;
$session_id = session_id();
?>
<?php require_once('C onnections/mariz.php'); ?>
<?php
mysql_select_db ($database_mari z, $mariz);
$result = mysql_db_query( "mariz","SE LECT * FROM table1 WHERE session_id =
'$session_id' ORDER BY votos1 DESC limit 7");
while($row = mysql_fetch_arr ay($result)) {
echo $row["marcas"];
echo $row["votos1"];
}
mysql_free_resu lt($result);
?>
---------------
Thanks,
Manuel
enough.
This code selects from a previous page where the users entered some votes
and select the 7 products they vote the most.
I want to be able to make them vote again but with the same products for a
different question.
If i could echo each of the results from the query, i could insert each of
the votes to a new table in the DB (MySql).
Here's the code...
<? session_start() ;
$session_id = session_id();
?>
<?php require_once('C onnections/mariz.php'); ?>
<?php
mysql_select_db ($database_mari z, $mariz);
$result = mysql_db_query( "mariz","SE LECT * FROM table1 WHERE session_id =
'$session_id' ORDER BY votos1 DESC limit 7");
while($row = mysql_fetch_arr ay($result)) {
echo $row["marcas"];
echo $row["votos1"];
}
mysql_free_resu lt($result);
?>
---------------
Thanks,
Manuel
Comment