Hi All,
I have a function that gets a single field from a mssql db. That field contains data that is then parsed out to represent a survey's results. The function; function quesresults(){ $query = "SELECT sur_ans FROM au_survey"; $result = MSSQL_QUERY($query) or die("Can not execute query $query. "); $row = mssql_fetch_array($result); $thearray = explode('__', $row); - This is line 40 $i = 1; foreach($thearray as $topelement){ foreach(explode('--', $topelement) as $element){ echo $element; echo "<br>"; } echo "question $i"; echo "<br>"; $i++; } } When I call the function I get; Notice: Array to string conversion in \WWW\mypath\srvyclass.inc.php on line 40 Array question 1 What am I missing? alex hogan ****************************************************************** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. ******************************************************************