• Abdul Faizan
  • Junior Member
  • Posts 1
  • Reputation 0
  • Member Since
  • Last Active
All Posts Topics Started Likes
Php Execution Error please help
Dear sir,
i am studying your Advance PHP Lectures#10, i got an error on chrome browser(Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\collegeupdateform.php on line 29). by executing following code as i have given below.
 
please guide me what's a mistake i made in this Php code please solve it otherwise, i cant move forward to the next lecture without understanding it.

Best Regards
Abdul Faizan
0345265633
abdulfaizan88@gmail.com
-------------------------------------------------------------------------------------------- 
<?php
 
$con = mysql_connect("localhost","root","") or die("Connection fails");
mysql_select_db("college") or die("Database Error");
 
//echo "database and mysql connected";
 
$q = mysql_query("select * from studentinfo");
 
echo "<table border=1>
<th>Roll No</th>
<th>Name</th>
<th>Class</th>
<th>Update</th>";
 
 
 
while($rows = mysql_fetch_array($q))
{?>
<tr>
<td><? echo $rows[0];?></td>
<td><? echo $rows[1];?></td>
<td><? echo $rows[2];?></td>
 
</tr>
 
 
<? } ?>
</table>
0 0
count post selected

Add a Website Forum to your website.