Posted by Ja NE on 10/25/05 14:27
Steve <googlespam@nastysoft.com> wrote:
>
> SELECT @TOT:=SUM( `usage` )
> FROM mytable
>
> SELECT `usage`, `usage` / @TOT AS `perc`
> FROM mytable
> ORDER BY `perc`
> LIMIT 1
>
> No need to learn about arrays just yet 8-)
Thank you Steve, will try that latter too. php solution have olready
went on site...
--
Ja NE
http://fotozine.org/?omen=janimir
--
Navigation:
[Reply to this message]
|