Oracle: CLOB speichern klappt nicht

Gray

Erfahrenes Mitglied
Ich glaub ich bin zu doof, hier der Quellcode:

PHP:
$LOBdatei = $_POST[todo];
		
		$result = OCIParse("INSERT INTO GN_TODO (ADMIN_ID, DAUER, FERTIGSTELLUNG, TEXT, TIMESTAMP, AUTOR) "
		." VALUES ('$_POST[mitarbeiter]','$_POST[dauer]','$_POST[fertigstellung]',EMPTY_CLOB(),'$timestamp','$_GET[uid]')"
		." RETURNING LOBdatei INTO :LOBtodoLOC");
		
		$LOBtodo = oci_new_descriptor($db, OCI_D_LOB);				
		oci_bind_by_name($result, ":LOBtodoLOC", &$LOBtodo, -1, OCI_B_CLOB);
		
		oci_execute($result, OCI_DEFAULT);		

		if(!$LOBtodo->save($LOBdatei)){
			oci_rollback($db);
		}else{
			OCICommit($db);
		}

Ich bekomme hierbei nur Fehlermeldungen:

Code:
Warning: ociparse() expects exactly 2 parameters, 1 given in /home/www/web1/html/verwaltung/allgemein/todo.php on line 32

Warning: oci_bind_by_name() expects parameter 1 to be resource, null given in /home/www/web1/html/verwaltung/allgemein/todo.php on line 35

Warning: oci_execute() expects parameter 1 to be resource, null given in /home/www/web1/html/verwaltung/allgemein/todo.php on line 37

Warning: OCI-Lob::save() [function.OCI-Lob-save]: OCI_INVALID_HANDLE in /home/www/web1/html/verwaltung/allgemein/todo.php on line 39

Ich hoffe Ihr könnt mir helfen.
 

Neue Beiträge

Zurück