I got a php code that prints a table using while loop:
while ($data = mysqli_fetch_array ($result)) {
echo '<tr>';
echo '<td>' .$data ['commodity']. '</br>'. '</td>';
echo '<td>' .$data ['region'].'</br>'.'</td>';
echo '<td>' .$data ['member'].'</br>'. '</td>';
echo '<td>' .$data ['size']. '</br>'. '</td>';
echo '<td>' .$data ['price']. '</br>'.'</td>';
echo '<td>' .$data ['posted']. '</br>'.'</td>';
echo '<TD><INPUT TYPE=BUTTON OnClick="submit_btn" NAME="accepted" VALUE="accept"></TD>';
echo '</tr>';
$id=$data ['id'];
This fetches the data + submit_btn. now I need the button to get the current id and store it in a variable.
big thanks for all help !