Hi all,
I have a problem and i don't know how to solve it.
I'm using odbc_fecth_array to retrieve some data from my database. (See below)
while($registo=odbc_fetch_array($resultado))
{
$CreatedBy = $registo["CreatedBy"];
$CreationDate = retrieve_data_DB($registo["CreationDate"]);
$AssignTo = $registo["AssignTo"];
$Status = $registo["Status"];
$StatusName = RetrieveStatus($db, $user, $pass, $Status);
print("
<tr>
<td align=center>$CreatedBy</td>
<td align=center>$CreationDate</td>
<td align=center>$AssignTo</td>
<td align=center>$StatusName</td>
</tr>");
}
$StatusName is calculated with function RetrieveStatus that receives one Status Key and return the name of that status.
When i run the script i got the error: "Warning: odbc_fetch_array(): 7 is not a valid ODBC result resource in C:\Inetpub\ on line 184
".
If i comment the line where i call the function to retrieve the Status Name everything works fine.
Somebody help me please...
Thanks
I have a problem and i don't know how to solve it.
I'm using odbc_fecth_array to retrieve some data from my database. (See below)
while($registo=odbc_fetch_array($resultado))
{
$CreatedBy = $registo["CreatedBy"];
$CreationDate = retrieve_data_DB($registo["CreationDate"]);
$AssignTo = $registo["AssignTo"];
$Status = $registo["Status"];
$StatusName = RetrieveStatus($db, $user, $pass, $Status);
print("
<tr>
<td align=center>$CreatedBy</td>
<td align=center>$CreationDate</td>
<td align=center>$AssignTo</td>
<td align=center>$StatusName</td>
</tr>");
}
$StatusName is calculated with function RetrieveStatus that receives one Status Key and return the name of that status.
When i run the script i got the error: "Warning: odbc_fetch_array(): 7 is not a valid ODBC result resource in C:\Inetpub\ on line 184
".
If i comment the line where i call the function to retrieve the Status Name everything works fine.
Somebody help me please...
Thanks