Jump to content

[SOLVED] array addition


cleary1981

Recommended Posts

Hi I have the ollowing query

 

$q3 = mysql_query("SELECT hours FROM object, module WHERE object.module_name = module.module_name AND proj_id=$proj_id") or die(mysql_error());

 

What I want to do is get the total number of hours ie add up the hours returned for every record.

 

Can anyone advise?

Link to comment
https://forums.phpfreaks.com/topic/122503-solved-array-addition/
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.