All pastes #387869 Raw Edit

Mine

public text v1 · immutable
·published 2007-03-09 18:13 UTC
rendered paste body
<?
				
				$ml_query = mysql_query("SELECT * FROM `server_loads` where serverid='1'"); 
				$ml_results = mysql_fetch_assoc($ml_query); 
				
				echo $ml_results['servercost']; 
				
				?>




<?
				
				// NEED TO ADD SERVICEs
				// this is where I add up all the accounts payable that are being payed every month "in theory" and
				// compare them to the monthly loss or "monthly expenses"
				
				$lg_query = mysql_query("SELECT * FROM `services`"); 
				$income = 0; 
				while($lg_results = mysql_fetch_assoc($lg_query)) { 
					$income = $lg_results['total'] + $income;  // collect and add all the income we are getting each month. 
				} 
				$lg = $ml_results['servercost'] + $income; 
				?>