hello friends i want to show record on firstname condition..i create a html form to get firstname input from user and a submit button...and the result.phph file including code given below...but it give me error on highlighted line..please tell me what i do..please correct this code....
<?php
$con=mysqli_connect("abc.com","college","College","college");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

$result = mysqli_query($con,"SELECT * FROM student WHERE FirstName=$_POST["firstname"]);

echo "<table border='1'>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Roll_Num</th>
<th>Marks</th>
<th>Attendance</th>
</tr>";

while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['FirstName'] . "</td>";
echo "<td>" . $row['LastName'] . "</td>";
echo "<td>" . $row['Roll_Num'] . "</td>";
echo "<td>" . $row['Marks'] . "</td>";
echo "<td>" . $row['Attendance'] . "</td>";
echo "</tr>";
}
echo "</table>";

mysqli_close($con);
?>