运行时出现PHP错误

时间:2017-06-15 17:55:53

标签: php html

运行脚本时出现此错误,我不知道从哪里来的! 解析错误:语法错误,意外'"}"' (T_CONSTANT_ENCAPSED_STRING),期待','或';'在第69行的C:\ install \ xampp \ htdocs \ website \ displayupdate.php

我在回声结束后立即得到错误} ..

代码就是这样:

  <html>

<?php

//Connect to database
$connect=mysqli_connect("localhost" ,"root", "","asig");

//Select database
mysqli_select_db($connect,'asig');

//Select Query
$sql = "SELECT * FROM `customer`,`type`,`valability` WHERE customer.Customer_ID=valability.Customer_ID  AND valability.Insurance_ID=type.Insurance_ID";

//Execte query
$records=mysqli_query($connect,$sql);



?>
<head>
</head>
<body>

<table>
    <tr>
         <th>id</th>
         <th>Nume</th>
         <th>Prenume</th>
         <th>DataNastere</th>
         <th>telefon</th>
         <th>Adresa</th>
         <th>email</th>
         <th>serie</th>
         <th>type</th>
         <th>numeAsig</th>
         <th>Companie</th>
         <th>Valoare></th>
         <th>Numar</th>
         <th>DataIntrare</th>
         <th>DataExpirare</th>
    </tr>
    <?php
     while($row=mysqli_fetch_array($records)){


                       echo "<tr><form action=update.php method=post>";
                      // echo "<td><input type=checkbox name=checkbox[]  value='".$row['Customer_ID']."'></td>";
                       echo "<td><input type=text name =id value='".$row['Customer_ID']."' ></td>";
                       echo "<td><input type=text name= name value='".$row['Name_c']."'> </td>";
                       echo "<td><input type=text name=prenume value='".$row['Surname_c']."'> </td>";
                       echo "<td><input type=text name=brth value='".$row['brth']."'> </td>";
                       echo "<td><input type=text name=phone value='".$row['phone']."'> </td>";
                       echo "<td><input type=text name=adress value='".$row['adress']."'> </td>";
                       echo "<td><input type=text name=email value='".$row['email']."'> </td>";
                       echo "<td><input type=text name=serie value='".$row['series']."'> </td>";
                       echo "<td><input type=text name=type value='".$row['type']."'> </td>";
                       echo "<td><input type=text name=namei value='".$row['name_i']."'> </td>";
                       echo "<td><input type=text name=compn value='".$row['Company_N']."'> </td>";
                       echo "<td><input type=text name=value value='".$row['value']."'> </td>";
                       echo "<td><input type=text name=nr value='".$row['nr']."'> </td>";
                       echo "<td><input type=text name=entryin value='".$row['entry_d']."'> </td>";
                       echo "<td><input type=text name=entryout value='".$row['exp_d']."'> </td>";
                       echo "<td><input type=submit>";

                   echo "</form></tr>"



     }




    ?>  
</table>




</body>


</html>

0 个答案:

没有答案