Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / PHP, Perl, Python [игнор отключен] [закрыт для гостей] / header / 3 сообщений из 3, страница 1 из 1
22.11.2004, 10:39
    #32793441
ens
ens
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
header
у меня есть функция:

function
{
...
db_query("INSERT INTO guest_tbl (date, name, email, www, mess) VALUES(now(), '$name','$email','$url','$mess')");
header("Location: ".PATH);
}

пишет следующее:

Warning: Cannot modify header information - headers already sent by (output started at c:\home\palych-tour.ru\www\gbook\gbook.php:9) in c:\home\palych-tour.ru\www\db\gb.php on line 52

Что делать, помогите.
Фактически мне надо что бы после SQL завпроса меня перекидывало на другую страницу.
...
Рейтинг: 0 / 0
22.11.2004, 11:33
    #32793574
sky2k
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
header
Warning: Cannot modify header information - headers already sent by (output started at c:\home\palych-tour.ru\www\gbook\gbook.php:9) in c:\home\palych-tour.ru\www\db\gb.php on line 52

http://www.php.net/manual/ru/function.header.php
Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP . It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file.

--
http://jcatki.no-ip.org/c++/bart.jpg
...
Рейтинг: 0 / 0
22.11.2004, 16:56
    #32794637
ScareCrow
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
header
...
Рейтинг: 0 / 0
Форумы / PHP, Perl, Python [игнор отключен] [закрыт для гостей] / header / 3 сообщений из 3, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]