|
|
|
| В некотором файле .php подключаюсь к БД, посылаю запроси и всё такое... После окончания php скрипта идут теги html страницы. Для меня секрет в том, почему IE выводит всё как задумываеться, а Opera и FF выводят весь html код как обычный текст. | |
|
|
|
|
|
|
|
для: shkryab
(14.05.2007 в 14:47)
| | эм... начинаете с <html> ? | |
|
|
|
|
|
|
|
для: CrazyAngel
(14.05.2007 в 14:48)
| | Поначалу да, потом убрал, но ничего не изменилось! Поэтому вернул! | |
|
|
|
|
|
|
|
для: shkryab
(14.05.2007 в 15:07)
| | а ?> сделал прерд выводом html? | |
|
|
|
|
|
|
|
для: Sergmust
(14.05.2007 в 16:03)
| | Сделал! А когда сделал ещё и проверил несколько раз на наличае "?>" в коде.
<?php
header("Content-type: text/plain; charset=windows-1251");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
$query = "select PageText from Pages where NumMenu=11 AND NumPage=1";
$queryres = @mysql_query($query);
$value = mysql_result ($queryres,0);
$db = @mysql_connect ("localhost:3308","root","");
if ($db)
{
if (@mysql_select_db("baltcomp",$db))
{
$query = "select PageText from Pages where NumMenu=11 AND NumPage=1";
$queryres = @mysql_query($query);
$value = mysql_result ($queryres,0);
}
else
{
echo "Бида с базой!!!!";
}
if (!mysql_close($db))
{
echo "Бида с закрытием!!!!";
}
}
else
{
echo "Бида с открытием!!!!";
}
?>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=cp1251'>
</head>
<body>
<table id='main' border='5' style='width: 100%; text-align: center'>
<tr>
<th style='width: 10%; text-align: center'>Пункт меню</th>
<th style='width: 25% text-align: center'>Подменю</th>
<th style='width: 60%; text-align: center'>Текст страницы</th>
<th style='width: 5% text-align: center'></th>
</tr>
<tr>
<form name="1">
<td><input type="text" size="12" maxlength="15" value="Главная"></td>
<td style="text-align: left"><input type="checkbox" checked="checked">
<select name="" size="1">
<option value="1">1</option>
</select><br>
<input type="text" size="12" maxlength="15">
<input type="button" value="Добавить">
<input type="button" value="Удалить">
</td>
<td><textarea rows="10" cols="60">
<?php echo $value ?></textarea></td>
<td><input type="button" value="Удалить"></td>
</form>
</tr>
</table>
</body>
</html>
|
| |
|
|
|
|
|
|
|
для: shkryab
(14.05.2007 в 16:05)
| | Всем спасибо за внимание! Ошибку свою понял! Тема закрыта! | |
|
|
|