note 43736 added to function.array-search
| From: | tosakanr at yahoo dot com | Date: | Thu, 01 Jul 2004 18:25:32 +0000 |
| Subject: | note 43736 added to function.array-search | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-72275@lists.php.net to get a copy of this message | ||
//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
----
Manual Page -- http://www.php.net/manual/en/function.array-search.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43736
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43736&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43736&report=yes
Search -- http://master.php.net/manage/user-notes.php