* Thus wrote Damian Brown ([EMAIL PROTECTED]): > The code is shown below > > ... > $key=1 ; > while ($row=mysql_fetch_row($result)){ > ?> > <?php mysql_query("INSERT INTO searchsorting (username,bid) VALUES ( ' > $row[5] ' , ' $row[6] ' )"); > $a = array( $key => $row[6] ); > $key=$key + 1 ; ?>
btw, $a will only have one element in it no matter how many results are returned from your sql statement. You want somethng like this: $a[$key++] = $row[6]; //$key=$key + 1; *note the $key increment also. HTH, Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php