swampone Posted March 1, 2011 Share Posted March 1, 2011 I need to be able to add all the numbers together collected from the database with mysql_fectch_array public function gradeQuery(){ $id = $this->idQuery(); $sql = "SELECT*FROM grades WHERE moviesID = '$id'"; $result = mysql_query($sql); $row = mysql_fetch_array($result); $num_rows = mysql_num_rows($result); } Quote Link to comment Share on other sites More sharing options...
swampone Posted March 1, 2011 Author Share Posted March 1, 2011 each $row['grade']; contains number. I believe I have to use a while loop somehow. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.