Saya kira Anda lupa
ociexecute($stmt, OCI_DEFAULT);
Setelah
$stmt = OCIParse($connect, $query);
Dan sebelum:
while(OCIFetch($stmt))
Jadi akan terlihat seperti ini:
//Perform search
$stmt = OCIParse($connect, $query);
// Execute statement
ociexecute($stmt, OCI_DEFAULT);
//And display the results
$counter = 0;
while(OCIFetch($stmt))
{
$counter++;
...