When I try to execute script
PutEnv("TNS_ADMIN='C:\\Programy\\OracleDeveloper10g\\NETWORK\\ADMIN\\'"); $conn = oci_connect(user, pass, dbstring); if (!$conn) { $e = oci_error(); print htmlentities($e['message']); exit; } else { $stmt = OCIParse($conn, "SELECT * FROM USERS WHERE username = 'szymon'"); OCIExecute($stmt, OCI_DEFAULT); while ($row = oci_fetch_array($stmt, OCI_ASSOC+OCI_RETURN_NULLS)) { foreach ($row as $item) { $password = $item; } if ($password != $_POST['password']){ $stmt = OCIParse($conn, "EXECUTE clr_dtbs"); $message = 'Tabele zostały usunięte'; } else { $message = 'Podane hasło jest niepoprawne'; } } }
I get ORA-24374 error. What is wrong with my script?