Yes, 'tis me. Everything working so far. However, I'm using an onchange event to change the values in some boxes of text. Unfortunatly, the script isn't working properly... neither is my update section. I've worked on this for several hours and so far nothing's working. Any suggestions? Here's the onChange bit...
<select name="pick_post" onChange = "update_number=form.pick_post.options[form.pick_post.selectedIndex].value;">
<?
$select_query = "SELECT subject FROM news WHERE post_number < 5000";
$results = mysql_query($select_query, $connection);
while($row = mysql_fetch_array($results))
{
$subject_array[] = $row['subject'];
}
for ($counter = $num_posts; $counter >= 0; $counter--)
{
?>
<OPTION VALUE="<?php echo $counter; ?>"><?php echo "$subject_array[$counter]"; ?>
<?php
}
and now the update...
mysql_query("UPDATE news WHERE post_number = $update_number SET subject = '$update_subject', email = '$update_email', author = '$update_name', the_date = '$pdate_date', content = '$update_content' ", $connection);
Anything wrong? Any and all help appreciated.