I made this code to sum three fields called (linkhit) from three tables called( sound_link / sound_linkK/ sound_linkD in same database, but the result echo the word total not the number result by sum equation. So if this code is correct or not, please correct it to me if this is not correct.
<?php include "config.php"; ?>
<?php $results = mysql_query("select sum(linkhit),as total
from (
select linkhit
from Sound_link
union
select linkhit
from Sound_linkK
union
select linkhit
from Sound_linkD
)") ;
echo 'total';
?>