Toon posts:

[php] wat gaat hier fout?

Pagina: 1
Acties:
  • 30 views sinds 30-01-2008

Verwijderd

Topicstarter
PHP:
1
2
3
4
5
6
7
8
9
10
11
<?
 

$sql = "select siteurl from lyricle where username = '$QUERY_STRING'"; 
     $result = mysql_query($sql); 
     $row = mysql_fetch_object($result); 

     mysql_query("update lyricle set hitsout = hitsout+1 where username = '$QUERY_STRING'") or die (mysql_error()); 

     header("Location: $row->siteurl"); 
?>

ik krijg de volgende error:

Warning: Cannot add header information - headers already sent by (output started at /home/sites/site3/web/le/out.php3:1) in /home/sites/site3/web/le/out.php3 on line 8

, line 8 is de line met header. Ik weet dat het daar iets mee te maken heeft, maar niet hoe ik het op kan lossen. Wie helpt? :)

  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

www.php.net/header

Hoi,
deze thread gaat dicht :)
Dit is makkelijk te vinden via http://www.php.net/functienaam of http://www.php.net/manual/.
Mocht je alsnog tegen een probleem aanlopen ben je welkom om alsnog te posten hier in /14.

Doet iets met Cloud (MS/IBM)


Dit topic is gesloten.