in the config file its like this Execute ($strsql,$strError); while ($line = mysql_fetch_array($rst, MYSQL_ASSOC)) $a[$line['id']] = $line; ); ?>