hmm. this is very strange. now i'm getting
"Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING"
my code:
<?
include("config.php");
include("nav.php");
$result = mysql_query("SELECT SUM(income) FROM calendar WHERE month='June'");
echo 'Total Income in June: ' . mysql_result($result, 0);
?>
I messed around with the code a bit and now when I try taking out the "Total Income in June" bit:
<?
include("config.php");
include("nav.php");
$result = mysql_query("SELECT SUM(income) FROM calendar WHERE month='June'");
echo mysql_result($result, 0);
?>
I get "Fatal error: Call to undefined function: mysql_query() "