ODBC Error on Output

wxdqz

New Member
Warning: SQL error: [Microsoft][ODBC Driver Manager] Invalid cursor state, SQL state 24000 in SQLGetData in C:\Inetpub\wwwroot\websites\PHP_learning\dbconnect.php on line 25

What would make this happen? If I output the data with: print("$db_all_results<br><hr>"); I get no errors, but when I do this:

while ($i <= 17){
$db_res_name_array[$j] = odbc_result($db_SQL, $k);
print("$db_res_name_array[$j]<br>");
$i=$i+1;
$j=$j+1;
$k=$k+1;
}

I get the above error outputting one specific field ... all others work fine. The field just has text, same as the others.
 
Back
Top