Dude, I had already tried that. I added more records to the table, so now I have 3 records:
ID NAME
1 Bernardo
2 Benjamin
3 Oscar
Whenever I execute the PHP page, it shows this:
Array ( [ID] => 2 [NAME] => BERNARDO ) Array ( [ID] => 3 [NAME] => BERNARDO ) Array ( [ID] => 4 [NAME] => BERNARDO ) Array ( [ID] => 5 [NAME] => BERNARDO )
This is the exact PHP code:
$db = "95249";
$oracle_connection = oci_connect("BERNARDO", "BERNARDO", $db);
$stmt = oci_parse($oracle_connection, "SELECT * FROM PRUEBA");
oci_execute($stmt, OCI_DEFAULT);
while ($row = oci_fetch_assoc($stmt))
{
print_r($row);
}
I know the connection is working because I use the same parameter that I use with Oracle SQL * Plus, and the query works fine. Please Help!