2017-07-19 8 views
-3
<?php 
    include_once("includes/header.php"); 
    $SQL = "SELECT * FROM student ORDER BY st_id"; 
    $rs = mysql_query($SQL) or die(mysql_error()); 

?> 
<table width="90%" border="2" align="center"> 
    <tr> 
    <th colspan="5" align="right"><a href="student_add.php">Student Add </a></th> 
<th>ID. No. </th> 
<th>Name</th> 
<th>Father Name</th> 
<th>Mobile</th> 
<th>Action</th> 
</tr> 
<?php 
while($data= mysql_fetch_assoc($rs)) 
{ 
?> 
<tr> 
    <td>&nbsp;</td> 
    <td>&nbsp;</td> 
    <td>&nbsp;</td> 
    <td>&nbsp;</td> 
    <td>&nbsp;</td> 
</tr> 
    <? } ?> 

</table> 
<?php include_once("includes/footer.php"); ?> 

は私がように、エラーを取得しています:はなぜ「はエラー解析:構文エラー、予期しないファイルの終わり...」を取得しています

Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\php_marathon\student_view.php on line 30

エラーとは何ですか?私は理解できません。

+2

<?php'変更してください。 ''行方不明 ''へ ' – RJParikh

+1

から Exprator

答えて

1

お試しください。

<table width="90%" border="2" align="center"> 
<tr> 
<th colspan="5" align="right"><a href="student_add.php">Student Add </a></th> 
<th>ID. No. </th> 
<th>Name</th> 
<th>Father Name</th> 
<th>Mobile</th> 
<th>Action</th> 
</tr> 
<?php 
while($data= mysql_fetch_assoc($rs)) 
{ 
?> 
<tr> 
    <td>&nbsp;</td> 
    <td>&nbsp;</td> 
    <td>&nbsp;</td> 
    <td>&nbsp;</td> 
    <td>&nbsp;</td> 
</tr> 
    <?php } ?> 

</table> 
+0

おかげで右のそれを得ました –

関連する問題