'link' => "http://".$_SERVER['SERVER_NAME'].str_replace($_SERVER['PHP_SELF'], 'view.php', $_SERVER["SCRIPT_NAME"]).'?id='.$rowset['idto']
'link' => "http://".$_SERVER['SERVER_NAME'].'/'.str_replace($_SERVER['PHP_SELF'], 'view.php', $_SERVER["SCRIPT_NAME"]).'?id='.$rowset['idto']