When I use the below code with Oracle, I get "Warning: OCIFetchInto:
ORA-01002: fetch out of sequence in DB/oci8.php on line 206" after it
has unloaded everything in the "$row" array. The same code works fine
against mysql though?
$db = DB::connect("oci8://login:password@c1sc.world");
$sql = "SELECT username FROM userlogin";
if (DB::isError($result = $db->query($sql))){
echo "error";
} else {
while ($row = $result->fetchrow()){
echo $row[0]."<br>";
}
}
$db->disconnect();