Re: (int)mysql_result?
| From: | Indioblanco | Date: | Wed, 21 Nov 2001 04:59:12 +0000 |
| Subject: | Re: (int)mysql_result? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14491@lists.php.net to get a copy of this message | ||
(int)
forces (casts) result as integer--
see http://www.php.net/manual/en/language.types.type-juggling.php#language.types.typecasting
"SUM" would be the field name
-ib
phpnet@SeaPort6.com wrote:
What does adding the (int) do to this statement: $poll_sum = (int)mysql_result($poll_result, 0, "SUM"); I do not find anything about the "SUM" either. Thanks Dave