I have a database/store and here is my simple query :
$query_Recordset1 = "SELECT * FROM orders WHERE products = 30";
Now, we want LIVE results of how much total money we donate when people by this product. This product is around $30 dollars (which is irrelevant) but we donate $5 for every purchase to a certain cause and would like to show the total amount in dollars:
Like this: We have donated $755 to this cause or something like that!!
Anyways, here is my php. We need a $start variable, which is how much money we have donated before we implemented the database and store..
Here it is. I need a little help to get this to work out: Thanks in advance:
<?php
$start = 20; // how much money we started with before the database
$limit = $start + $totalRows_Recordset1 + 5; // what we started with + the total number of rows that equal the product '30'
echo $limit;
?>