hi all i have problems with php script that i made, this script show items from sql db , and next to every item i put add to cart button, but when i click on that hi just get information from last raw of table… what do i need to do? becouse i need a information from raw that is selected.
[php] {
echo “
echo “
echo “
echo “
echo “
echo “
echo “
echo “
echo “
echo “
echo “
echo “
echo “
echo “
echo ’
style=“margin:0;position:absolute;left:279px;top:1146px;width:220px;height:96px;”>
<input type=“hidden” name=“item_number” value="’ . $row[“artnr”] . '">
';
echo “
}
echo “”;
}
mysql_close($db_con);
?>[/php]
[php]<input type=“hidden” name=“item_number” value="’ . $row[“artnr”] . '">[/php]
this value i every time i click only get me from last row of table, and there is also problem with pirst row of table becouse when i click add its not working only on frist row… if someone can help me THX