Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function create_new_file()
- {
- $DB = '//10.11.201.170:1521/XE';
- $DB_USER = 'BIOTPL';
- $DB_PASS = 'biotpl';
- $DB_CHAR = 'AL32UTF8';
- $conn = oci_connect($DB_USER, $DB_PASS, $DB, $DB_CHAR);
- if($conn)
- {
- $sql = "INSERT INTO FILEDATA (PR_KEY,FILEDATA,FILENAME)
- VALUES (FILE_SEQ.nextval,EMPTY_BLOB(),'".$fileName."')";
- $stmt = oci_parse($conn,$sql);
- $result=oci_execute($stmt);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement