Re: Couple of small questions
| From: | Website4S at aol dot com | Date: | Mon, 20 Nov 2000 11:11:52 +0000 |
| Subject: | Re: Couple of small questions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26239@lists.php.net to get a copy of this message | ||
In a message dated 20/11/2000 10:24:44 GMT Standard Time, jeremy@nirvani.net
writes:
<< select sum(Gram) from tablename;
:)
-jeremy brand >>
Ok I am doing this but something still isn`t working, this is the code I have
anyone spot a mistake?
$SQLStatement = "SELECT SUM(Gram) FROM Purdue";
$SQLConn = mysql_connect("", "", "") or die ("Could not
connect to
database");
$db = mysql_select_db("", $SQLConn) or die ("Couldn`t select
database");
$KL = mysql_query($SQLStatement) or die ("Invalid Query");
mysql_close ($SQLConn);
echo ($KL);