[DB] mssql fetch assoc problem.
| From: | Vincenzo | Date: | Thu, 20 May 2004 12:17:06 +0000 |
| Subject: | [DB] mssql fetch assoc problem. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-12651@lists.php.net to get a copy of this message | ||
Hi,
my system is a php 4.3.4 and freetds, mdk10 and the last version of pear. When I try to do an associative fetch someting is wrong.
Without the @ the system give me this warning
Warning: Wrong parameter count for mssql_fetch_array() in /usr/share/pear/DB/mssql.php on line 202
the line is:
$arr = @mssql_fetch_array($result, MSSQL_ASSOC);
So, if I remove the MSSQL_ASSOC the function give me the array associative and numeric both but in this case I can fetch my result.
I tried with this code but it doesn't work:
if (function_exists('mssql_fetch_assoc') == TRUE)
$arr = @mssql_fetch_assoc($result);else
$arr = @mssql_fetch_array($result, MSSQL_ASSOC);in my sistem the function mssql_fetch_assoc doesn't exist. Any suggestion? Vincenzo.