Date: 11/20/01
- Next message: phpnet <email protected>: "Re: [PHP-DB] Result is not empty"
- Previous message: Indioblanco: "Re: [PHP-DB] Result is not empty"
- In reply to: phpnet <email protected>: "[PHP-DB] (int)mysql_result?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
(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 <email protected> 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
>
>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: phpnet <email protected>: "Re: [PHP-DB] Result is not empty"
- Previous message: Indioblanco: "Re: [PHP-DB] Result is not empty"
- In reply to: phpnet <email protected>: "[PHP-DB] (int)mysql_result?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

