Bu dosyada arkaplan resmi ayarlamaya çalışıyordum indx.php Bunu denedim ama işe yaramıyor Arkaplan hala boş. Ancak, uzantıyı index.html arkaplanına başarıyla değiştirirseniz. Kodda yanlış olanı anlamıyorum. Ve neden böyle davrandığını.Arka plan resmi ayarlanamadı
<html>
<head>
<style>
body
{
background-image: url("back.jpg");
background-position:0px 0px;
background-size: cover;
background-repeat: repeat;
}
</style>
</head>
<body>
<style>
table{
border-spacing:15px;
}
td{
padding:30px;
}
body
{
background-image: url(back.jpg);
background-size: cover;
background-repeat: repeat;
}
</style>
</body>
<?php
require "connect.php";
$sql="select * from nbook";
$row = $conn->query($sql);
$n=0;
echo"<form method='post'><table border='0' align='center'><tr>";
while($arr = $row->fetch_assoc())
{
$i=$arr['BookId'];
if($n%3==0)
{
echo "<tr>";
}
echo "
<td height='280' width='240' align='center'><img src='data:image/jpg;base64,".base64_encode($arr['BookImage'])."'height='250' width='200'><br/>
<b>BOOKNAME:</b>".$arr['BOOKNAME']."
<br><b>Author:</b>".$arr['Author']."
<br><b>Publication:</b> ".$arr['PublicatonHouse']."
<br><b>Discount:</b>".$arr['Discount']."%
<br><br><img src='images/MetalPlakDa5new.gif' width='70' height='20'/></a>
<img src='images/view7.jpg' width='70' height='20'/></a>
</td>";
$n++;
}
echo "</tr></table>
</form>";
?>
</body>
</html>
Belki o kısmı bir sorun eklemek gerekir sürgülü ve böylece
kaybolan oldu: "' gerektirir connect.php "; Bu dosya var mı? –
Belge içinde