Issues with 'checked' attribute in 'input' form tags within PHP while loops -
Issues with 'checked' attribute in 'input' form tags within PHP while loops - i'm using html form edit sql db, want have form display value in database. i'm using while loop display sql rows. simple radio button allowing user chose between 'listings' (shows '0' in sql) or 'recent transactions" (shown '1' in sql). the radio buttons not pre-filling value sqlas checked or not <form name="edit listing" action="edit_list.php" method="post" id="edit_form" > <ul> <?php while ($data=mysqli_fetch_assoc($result)): $transaction = $data['transaction']; $chkvalue='checked="checked"'; ?> <li> <fieldset> <legend>designation <h6>required</h6></legend> <input name="transaction" type="radio" tabindex="11" value="0" <?php if ...