0
How do I put the php variable in the next value:
<?php
while($ver=mysql_fetch_row($busca)){
$id1 = $ver[0];
?>
<tr>
<td><input type="radio" value="$id1"></td>
<td><?php echo "$ver[0]"; ?></td>
# code ...
The way I did value="$id1"
didn’t work.
Only one of the "radios" should be selected, so the values should be different:
short tags makes life easier !
– Pedro Augusto
If the PHP version is
5.4 >=
no need to enable shortags. It is native– Wallace Maxters
Right, but it didn’t solve my problem, I have a table with database values contained in an array, which are shown from the loop of repetition, and I want to make you select only one of the options, for that the values must be different:
– Eduardo Balestrin
@Eduardo, yes, that kind of clarification has to be within of your question.
– brasofilo
@Eduardobalestrin this kind of information already escapes the scope of your question. New question should be asked about this, mainly informing your sql structure so that we can help you.
– Alan Rezende
Okay okay, thank you
– Eduardo Balestrin