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 =
Alex Hogan mailto:[EMAIL PROTECTED]
on Tuesday, March 16, 2004 9:48 AM said:
$row = mssql_fetch_array($result);
$thearray = explode('__', $row); - This is line 40
$row is an entire array. you don't explode an entire array, you only
explode the contents of an
$row is an entire array. you don't explode an entire array, you only
explode the contents of an element of an array.
print_r($row) will give you some clues.
you'll need to access a specific element within the array. like:
$thearray = explode('__', $row[0][0]);
That was it... Thanks
3 matches
Mail list logo