Jump to content

Add all numbers in mysql_fetch_arrary


swampone

Recommended Posts

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);


} 

 

Link to comment
https://forums.phpfreaks.com/topic/229221-add-all-numbers-in-mysql_fetch_arrary/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.