I have searched for 2 days! I cannot find the answer. I am not sure I am wording this question correctly. What I am doing, I have rental units, and tenants. I have a form, I want to insert data from rental units database into the tenant info database, in a radio format. EXAMPLE, I have a new tenant moving in, I need to select the rental unit they are moving into. To see what I have, go to 3602online.com click Log In in the upper right corner. Look at the bottom of the form and register, I can delete any abusive users. Now, once a member, and logged in, go to Manage Rentals tab, and on the left, select Add Tenant. Now, this is the form I am having issues with. The radio buttons show, but the data I tried to retrieve from the rental unit DB does not show! I am not great at programming, but also, not stupid! Thank you if you can help me!
<!-- Rental Unit input -->
Rental Unit:
<!-- FETCHING DATA FROM EACH ROW OF EVERY COLUMN -->
<!-- PHP CODE TO FETCH DATA FROM ROWS -->
<?php
// LOOP TILL END OF DATA
while($rows = $result->fetch_assoc()) {
?>
<br/><br/>
<input name="rental_unit" <?php echo $rows['address'];?> required type="radio" />
<?php
}
?>