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