powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / PHP, Perl, Python [игнор отключен] [закрыт для гостей] / header
3 сообщений из 3, страница 1 из 1
header
    #32793441
ens
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
у меня есть функция:

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
header
    #32793574
sky2k
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
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
header
    #32794637
Фотография ScareCrow
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / PHP, Perl, Python [игнор отключен] [закрыт для гостей] / header
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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