I am new to PHP and I am making this page and I want to display the Records from database IF there is any value in the records. I am using If condition
but, it's not working. Here's my code:
$active_proof=FALSE;
while ($row_proof = mysqli_fetch_assoc($res_proof)){
if ($row_proof['proof_cat'] == "Proof of Address" && $row_proof['proof_cat'] == "Proof of Identity" ){
echo '<tr>
<td>'.$row_proof['proof_cat'].'</td>
<td>'.$row_proof['proof_doc'].'</td>
</tr>';
$active_proof = TRUE;
}else{
$active_proof = FALSE;
}
}
Help me guys!
Aucun commentaire:
Enregistrer un commentaire