我不知道如何解决此错误:分析错误:语法错误,C:\ xampp \ htdocs \ AG \ result.php中第65行的文件意外结束。65行是最后一行>
这是代码:
<?php
$db = new mysqli('localhost', 'root', '', 'produits');
if (isset($_GET['search_button']));
{
$search = $_GET ['search'];
if($search=="")
{
echo "<center> <h1> <b> SVP écris quelque chose! </b> </h1> </center>";
}
$sql = "select * from produit where KePro like '%$search%'";
$rs = mysqli_query($db, $sql);
if(mysqli_num_rows($rs))
{
echo "<center> <h2> <b> Oops! Il n'y a aucun résultat. </b> </h2> </center>";
}
$sql1 = "select * from produit where KePro like '%search%'";
$rs1 = mysqli_query($db, $sql1);
while ($row1=mysqli_fetch_array($rs1));
{
echo "<front size='4' color='#1a1aff'> <b> $row1[1] </b> </font> <br>";
}
?>