This line works at inserting the data when its just a record set line
<tr valign="baseline">
<td nowrap="nowrap" align="right"><div align="left">Home:</div></td>
<td><div align="left">
<input type="text" name="TeamA" value="<?php echo htmlentities($row_RS_NextGame['TeamA'], ENT_COMPAT, 'utf-8'); ?>" size="32" />
</div></td>
</tr>
but when its a drop down box ive created and bridged to the record set it doesnt insert any data.
<tr valign="baseline">
<td nowrap="nowrap" align="right"><div align="left">Year:</div></td>
<td><div align="left">
<select name="select3" id="select3" title="<?php echo $row_RS_NextGame['Year']; ?>">
<option value="2008" <?php if (!(strcmp(2008, htmlentities($row_RS_NextGame['Year'], ENT_COMPAT, 'utf-8')))) {echo "selected=\"selected\"";} ?>>2008</option>
<option value="2009" <?php if (!(strcmp(2009, htmlentities($row_RS_NextGame['Year'], ENT_COMPAT, 'utf-8')))) {echo "selected=\"selected\"";} ?>>2009</option>
<option value="2010" <?php if (!(strcmp(2010, htmlentities($row_RS_NextGame['Year'], ENT_COMPAT, 'utf-8')))) {echo "selected=\"selected\"";} ?>>2010</option>
<option value="2011" <?php if (!(strcmp(2011, htmlentities($row_RS_NextGame['Year'], ENT_COMPAT, 'utf-8')))) {echo "selected=\"selected\"";} ?>>2011</option>
<?php
do {
?>
<option value="<?php echo $row_RS_NextGame['Year']?>"<?php if (!(strcmp($row_RS_NextGame['Year'], htmlentities($row_RS_NextGame['Year'], ENT_COMPAT, 'utf-8')))) {echo "selected=\"selected\"";} ?>><?php echo $row_RS_NextGame['Year']?></option>
<?php
} while ($row_RS_NextGame = mysql_fetch_assoc($RS_NextGame));
$rows = mysql_num_rows($RS_NextGame);
if($rows > 0) {
mysql_data_seek($RS_NextGame, 0);
$row_RS_NextGame = mysql_fetch_assoc($RS_NextGame);
}
?>
</select>
</div></td>
</tr>
Does anything stick out ?
Ive been looking at it for a while now and I cant see anything wrong. Maybe ive been staring too long at it
Dicko