0

Hi. all i have small problem

Not verified =0 verified=1

$balance = $match_value['balance'];
$verified = $match_value['verified'];





<tr><td>  <b> Balance:  </b> </td> <td> 
if ($verified == 1)
{
    $verified = "$balance";
}
else
{
   <a class="btn btn-danger" href="verified.php" > not verified </a> 
} 
</td></tr>
3
Contributors
4
Replies
15
Views
3 Years
Discussion Span
Last Post by sigitas.darguzas
2

I think that it is your PHP tags and other little problems.
Try this.

<?php
    $balance = $match_value['balance'];
    $verified = $match_value['verified'];
?>
<tr>
    <th>Balance:</th>
    <td> 
    <?php if ($verified == 1) {
        $verified = $balance;
    } else {
       echo '<a class="btn btn-danger" href="verified.php"> not verified </a>';
    } 
    ?>
    </td>
</tr>

Edited by Szabi Zsoldos

0

Fix

    <?php
    $balance = $match_value['balance'];
    $verified = $match_value['verified'];
    ?>
    <tr>
    <th>Balance:</th>
    <td>
    <?php if ($verified == 1) {
    echo $balance;
    } else {
    echo '<a class="btn btn-danger" href="verified.php"> not verified </a>';
    }
    ?>
    </td>
    </tr>

Edited by sigitas.darguzas: fix

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.