note 43736 rejected from function.array-search by tomsommer
| From: | tomsommer@php.net | Date: | Thu, 01 Jul 2004 18:31:06 +0000 |
| Subject: | note 43736 rejected from function.array-search by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72276@lists.php.net to get a copy of this message | ||
Note Submitter: tosakanr@yahoo.com
----
//i want to sumary of colum in table
//e.g.
/*
++++++++++++++++++++++++++
+ no | code | name | price +
++++++++++++++++++++++++++
+ 1 | 1 | aaaa | 10 +
+ 2 | 2 | bbbb | 20 +
+ 3 | 3 | cccc | 30 +
+ 4 | 4 | cccc | 40 +
+ 5 | 5 | dddd | 50 +
+ ... | ... | ... ... +
++++++++++++++++++++++++++
total price = ?
*/
// query
$sql = " SELECT * FROM project ";
$result = mysql_query($sql) or die("Display has Error".mysql_error());
$num = mysql_num_rows($result);
// stamentt .....
// i want to know TOT PRICE PRICE = ?
// so that record will more than > 0 record in table