What is this about? how do i fix this?
Warning: Header may not contain more than a single header, new line detected. in /home/public_html/viewnews.php on line 26
Let's see /home/public_html/viewnews.php on line 26 and find out.
it's the Header line here
$URL = trim($row['Link']); header("Location: $URL");
I'm guessing there's a newline (\n) in the value of $row['Link']. 'Link' really should be validated before going into the database, but you could try:
$URL = trim(str_replace(array(char(10), char(13)), '', $row['Link']));
I'd go for preventing the $row['Link'] to have newlines in the first place.