Answer the question
In order to leave comments, you need to log in
What needs to be done to combine with?
I took the code from the website of the online store (basket), the meaning is this, it simply enters all the data into the localStorage browser, it works, but I need to recalculate the data, the final price (total amount) and the total weight (weight product)
MySQL
<? while ($row = mysqli_fetch_array($result)): ?>
<tr>
<td><?=$row['name'];?></td>
<td><div class="userpro-input"> <input type="text" id="pr<?=$row['id'];?>" name="username_or_email" style="color:black;" class="log_pass_input"></div></td>
<td><div class="userpro-input"> <button data-pr="pr<?=$row['id'];?>" class="incart">В корзину</button> </div> </td>
</tr>
<? endwhile; ?>
Answer the question
In order to leave comments, you need to log in
What is the problem with taking price from the database and creating a variable for summing?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question