Citat:
Originally posted by Davve@Sep 5 2005, 13:29
<?php
$mysql_connect("host","anv","pass);
$sql = "SELECT SUM(kollumn) FROM tabell";
$result = mysql_query($sql) or die(mysql_error());
print $result;
?>
|
Grazzy har rätt och ni får skämmas för om ni tog och läste hjälpen till php så står det klart och tydligt i den hur man ska göra.
Citat:
Attempting to print $result won't allow access to information in the resource
One of the mysql result functions must be used
See also mysql_result(), mysql_fetch_array(), mysql_fetch_row(), etc.
|