MY html form :
<form action="" method="post" >
<tr>
<td><select name="bs_edu">
<option value="" selected="selected">Select Basic Education</option>
<option value="BA">B.A</option>
<option value="BARCH">B.ARCH</option>
<option value="BCA">BCA</option>
<option value="BBA">BBA</option>
</select>
<td><input type="text" name="desg"/> </td>
<td><input type="email" name="email"/></td>
</tr>
</form>
My Query:
<?php
$stmt = $con->prepare("SELECT * FROM user_tbl WHERE bs_edu = ? AND desg = ? AND exp = ? AND pr_sal = ? AND plc = ? AND email = ? ");
$stmt->bind_param('ssssss', $_POST['bs_edu'], $_POST['desg'], $_POST['exp'], $_POST['prsal'], $_POST['place'], $_POST['email']);
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > "0")
{
while($row = $result->fetch_assoc());
{
echo 'first name: ' .$row['fname'];
}
}
$stmt->close();
?>
I know this the wrong way to show the data. Going through this manual http://php.net/manual/en/mysqli-stmt.fetch.php n really having bad luck, show how can i show the fetched data .. any help here.. thanks