Greetings,
I am a newbie writing a mysql database and using php.
The following code is supposed to output names from table 1 in a Last, First Middle format. The output looks exactly as it should, but when you examine the record in table 2, the data stops after Last. What looks like Smith, John Q in the form is stored as Smith
<tdIssued To:</td>
<td><select size="1" name="IssuedTo">
<option value="<?php echo $myrow[IssuedTo] ?>"><?php echo $myrow["IssuedTo"] ?></option>
<option value="Not Issued">Not Issued</option>
<?
Get Shooters From Table
Connect to Table
$sql = "Select LastN, FirstN, MiddleI FROM shooters ORDER BY LastN, FirstN, MiddleI";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
$nm="$row[LastN] $row[FirstN], $row[MiddleI]";
echo "<option value=";
echo $nm;
echo ">";
echo $nm;
echo "</option>";
}
?></select></td>
<?
mysql_free_result($result);
?>
</tr>
Sorry this post is so long. Thanks in advance for any help.
Mike