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