

|
Login to use this feature.
|
![]() Sep 3rd, 2008
1
Very simple and easy tutorial.
Why would you use 'while'-loop with one result? Just a hint, you can use aliases in MySQL. So instead of: $sql = "SELECT AVG(number) FROM averages"; [...] $rate=$r["AVG(number)"]; you could write something like this: $sql = "SELECT AVG(number) AS average FROM averages"; [...] $rate=$r['average']; (You could even write the following: $sql = "SELECT AVG(number) AS average FROM averages"; )[...] list($rate) = mysql_fetch_array($result, MYSQL_NUM); Sep 18th, 2008
2
I have a habbit of copy and pasting old code - the while loop worked - so it stayed :)
![]() |
Learn Flash and Actionscript with a live teacher Learn Flash and Actionscript 2.0 and 3.0, OOP programming. Live lessons and tailored assistance with a professional Flash developer using voice over IP and desktop sharing . Learn from a Master.
January 3rd, 2012
Pixel2Life's new Facebook page!
December 23rd, 2011
Our TOP members! Special thanks to Donna, 13lueMage, Jaymz, Rc69, Jamie Huskisson, Bug... and all our most active members.
December 21st, 2011
Should P2L Tutorials have a "Tagging" system?
December 15th, 2011
Want to suggest a new category or a new feature on Pixel2life?
December 13th, 2011
Improvements in the Forums
|















