I'm having some troubles with some code about a resource result thar decided not to be valid when passed to a linux box
I use a special Object to access tha database cause its suposed to use a mssql or a mysql databse.
the error message is : mssql_fetch_array(): 11 is not a valid MS SQL-result resource
and refers the my special DB access Object (dal) in line 11 wich is
Code: Select all
function fetchArray($result)
{
global $MSSQL;
if($MSSQL)
{
$row = mssql_fetch_array($result, MSSQL_ASSOC);
return $row;
}
else
...//the same for mysql
}Code: Select all
while($row=$objDAL->fetchArray($rst))
$listagem->Referencias($row,"Pesquisa",$txtAutores);so what is the problem?
Everthing works fine in windows but in my FC4 box i only get the first row of the $rst, in the second iteration the error occurs.
anyone?
Thanks
Pedro Barbosa