Не работает часть сайта из за php кода на хостинге 000webhost.com . Удалил код php из файла, и все работает. На локальном сервере, все работает как часики. А сдесь не работает.
body {
background-image: url(img/bananas.png);
margin:0;
}
h1{
color:black;
background-color:yellow;
margin-left:10px;
margin-right:10px;
border-radius:20px;
font-style: italic;
}
.header_top {
background-color:black;
height:8px;
position: relative;
top:23px;
margin-left:10px;
margin-right:10px;
border-radius:50px;
}
.header_bottom {
background-color:black;
height:8px;
position: relative;
top:-23px;
margin-left:40px;
margin-right:40px;
border-radius:10px;
}
.box {
background-color:yellow;
height:100px;
border-radius:8px;
border:2px;
opacity: 0.8;
margin-left:11px;
margin-right:11px;
margin-top:2px;
}
.box_out {
border:2px solid black;
border-radius:10px;
height:100px;
margin-left:9px;
margin-right:9px;
margin-top:-102px;
}
.bottom{
padding:0 12px;
box-sizing:content-box;
}
.box_left {
background-color:yellow;
height:205px;
width: 47%;
border-radius:8px;
border:2px;
opacity: 0.8;
margin-top: 10px;
}
.box_left_out {
border:2px solid black;
border-radius:10px;
height:205px;
width:47%;
margin-top:-207px;
position:relative;
right:2px;
}
.box_right {
background-color:yellow;
border-radius:8px;
border:2px;
opacity: 0.8;
width: 47%;
height: 205px;
float: right;
margin-top: -207px;
}
.box_right_out {
border:2px solid black;
border-radius:10px;
height:205px;
width: 47%;
margin-left:100px;
float: right;
margin-top:-209px;
position:relative;
left:2px;
}
.bl-status {
position: absolute;
margin-left: 11px;
max-height: 100%;
}
.connect {
width: 10px;
height: 10px;
display:inline-block;
background: green;
-moz-border-radius: 50px;
-webkit-border-radius: 50px;
border-radius: 50px;
}
.noconnect {
width: 10px;
height: 10px;
display:inline-block;
background: red;
-moz-border-radius: 50px;
-webkit-border-radius: 50px;
border-radius: 50px;
}
<!DOCTYPE html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
</head>
<html>
<body>
<div class="bl-status">
<span align="left" class="status">Server status:</span>
<?php
ini_set('display_errors','off');
error_reporting('E_ALL');
$connection = mysql_connect('localhost','id6185834_rob1nz','pjkjnjq11111','id6185834_tunika');
if ($connection == false)
{
echo '<div align="left" class="noconnect"></div>';
}
if ($connection == true)
{
echo '<div align="left" class="connect"></div>';
}
?>
</div>
<div align="center" class="header_top"></div>
<div align="center" class="osnova">
<h1>rob1nz</h1>
</div>
<div align="center" class="header_bottom"></div>
<div aling="center" class="box"></div>
<div aling="center" class="box_out"></div>
<div class="bottom">
<div aling="left" class="box_left"></div>
<div aling="left" class="box_left_out"></div>
<div align="right" class="box_right"></div>
<div align="right" class="box_right_out"></div>
</body>
</html>
Ты используешь mysql
что уже устарело в php.Поэтому тебе надо перейти к использованию mysqli
или PDO
Попробуй так:
$connection = mysqli_connect('localhost','id6185834_rob1nz','pjkjnjq11111','id6185834_tunika');
Если не решится проблема,сообщи тут. Мне тоже интересно стало зачем так.
Подскажите, пожалуйста, как сделать так чтобы данные из формы отправлялись на почту без помощи Outlook
Парсю страницы c Яндекса и иногда высвечивается капчаПытаюсь сделать так, чтобы я могла ввести ее и продолжить парсинг
Возникла проблема при инициализации динамического массива
Нужно заполнить дек числами фибоначи при помощи алгоритма generate и лямбда функцииМожет кто подкинет идейку через анонимную лямбду?А то через...