• Apex
  • Junior Member
  • Posts 1
  • Reputation 0
  • Member Since
  • Last Active
All Posts Topics Started Likes
PHP Advance = lesson 10
Dear Sir Kamran - PHP instructor

Im getting this parse error:
Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\Lesson10.php on line 31

Sir, Kindly guide me what to do to resolve this error ?

PHP code is :

<?php

$chkcon = mysqli_connect("localhost", "root", "@Mcse2015") or die("Failed"); //check connection
// echo "Connected!"; 

$chkdb = mysqli_select_db($chkcon, "college") or die( "DB Failed");
// echo "DB is Connected";

$viewAll = mysqli_query($chkcon, "Select *from stInfo");

echo "<table border=1>
<th>stRollno</th>
<th>stClass</th>
<th>stName</th>
<th>Update</th>";

while($rowsFetch = mysqli_fetch_array($viewAll))  //fetching rows
{ ?>
   <tr>
  <td><? echo $rowsFetch[0];?> </td>
  <td><? echo $rowsFetch[1];?> </td>
  <td><? echo $rowsFetch[2];?> </td>
 <td <a href="Lesson10.php?id =<? echo $rowsFetch[0]; ?>">Edit</a></td>

  </tr>
<? } ?>

</table>


Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\Lesson10.php on line 31

And also why there is no any category for PHP ?
0 0
count post selected

Add a Website Forum to your website.