Hi can someone help me on this issue
I have mysql table:
CREATE TABLE desktop (
id int(11) NOT NULL auto_increment,
click int(11) NOT NULL default '0',
url varchar(255) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;
and I wish to accomplish to have mysql result shown
$sql=(select SUM(click) from desktop);
echo "$sql";
It is not working .. can somebody help me to resolve this problem.
I have allready opened db connection.
What I wish is to SUM results from rows in colum click and echo them but I cannot work it out.
Thanks