Having trouble getting this to work.
my first page has the whole database shown in table format...and to the left of all the rows is a Radio button.
I want to be able to click the radio button and
I want the radio button to have the value of whatever ID number it was next to.
so I did this..inside the while loop..
print "<tr><td><INPUT TYPE = RADIO NAME = $PlayerID VALUE = $line[0]></td>";
so $line = mysql_fetch_array($result);
on my Next page...
its supposed to run a querry..so that I pick the record that matches the chosen radio button with the ID number. (call it pno)
$querry = "SELECT pno, fname, lname FROM info WHERE '$PlayerID' = pno";
$result = mysql_query($result) or die("didnt work");
And then I have a form
<FORM>
<tr><td>Last name: <td><td><INPUT TYPE="text" NAME = $lNAME VALUE = $line[2]><td></tr>
</FORM>
I know that last part is wrong because it just prints $line[2] (I didn't put <? ?> around it cuz I'm not sure how exactly, when I put it around it I get a parse error.
but I did it somhow and it didn't print anything.
What am I doing wrong? and when I make a Radio button/button or whatever should I define the name with the $ in front of it?
or should I just define the NAME with " " around it?
also do you think my Querry is even doing what I wanted it to do? or is it selecing nothing? (hence why I get nothing printed?
thanks for any help..