Hi!
I have a db with the following structure
Db name: virus
table name : Elof
And fields
Id - Source - Nmbr - Date
I basicly want to ask the database to give me
all the rows within a time spec...
So the code i wrote fast looks like this
<?
$open = mysql_connect("localhost", "root", "") or die ("not posible to connect to server");
$data = mysql_db_query("virus", "SELECT * FROM elof WHERE date LIKE '2003-10-10 13:40%' ORDER BY date");
while ($rad = mysql_fetch_array($data)) {
echo $rad["nmbr"]. "<br>";
}
?>
This code will give and output that looks like this:
22
6
42
18
62
3
53
47
27
2
6
3
2
3
I basicly want to add all these vallues together, but i have no clue
at all how to do it.. All the tests i have done has failed..
Have anyone got a clue how to do it??? i bet its werry simple
but i just dont know how...