Query MySQL table from login form.

Probably a simple question, but I can't seem to get it. Here my
my table on MySQL
ID        Username        UFN           ULN             Password
1         joSmith            John           Smith           encrypted
2         jaSmith            Jane           Smith           encrypted
3         jDoe                 John           Doe             encrypted
When I login using username and password, I want to display the first name and last name for the user and display it on the next page. I can usually echo a _POST, but when it comes to sessions, this doesn't seem to work properly, as the next page doesn't know the variable.

Sorry here is the code, its generated from the login user wizard from dreamweaver. It doesn't matter what code is on the second page as the session and post variables are "gone", I can't call on it. This code of course will successfully login to the restricted pages without issues.
<?php require_once('Connections/UserAcc_mySQL.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;   
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  return $theValue;
?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
  session_start();
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
  $_SESSION['PrevUrl'] = $_GET['accesscheck'];
if (isset($_POST['username'])) {
  $loginUsername=$_POST['username'];
  $password=md5($_POST['password']);
  $UN=$_POST['usern'];
  $MM_fldUserAuthorization = "";
  $MM_redirectLoginSuccess = "loginredirect.php";
  $MM_redirectLoginFailed = "adminlogin.php";
  $MM_redirecttoReferrer = false;
  mysql_select_db($database_UserAcc_mySQL, $UserAcc_mySQL);
  $LoginRS__query=sprintf("SELECT `User`, Password, UFN, ULN FROM username WHERE `User`=%s AND Password=%s",
    GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
  $LoginRS = mysql_query($LoginRS__query, $UserAcc_mySQL) or die(mysql_error());
  $loginFoundUser = mysql_num_rows($LoginRS);
  if ($loginFoundUser) {
     $loginStrGroup = "";
    //declare two session variables and assign them
    $_SESSION['MM_Username'] = $loginUsername;
    $_SESSION['MM_UserGroup'] = $loginStrGroup;     
    if (isset($_SESSION['PrevUrl']) && false) {
      $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
    header("Location: " . $MM_redirectLoginSuccess );
  else {
    header("Location: ". $MM_redirectLoginFailed );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
.Login
position:absolute;
vertical-align:middle;
margin-left: 40%;
margin-right: 40%;
top: 153px;
</style>
</head>
<body>
<div class="Login">
<form ACTION="<?php echo $loginFormAction; ?>" method="POST" name="LogMeIn">
<label>Username:</label> <input type="text" name="username" id="username" /><br />
<label>Password: </label><input type="password" name="password" /><br />
<input type="hidden" name="user" />
    <input type="submit" value="Login" />
</form>
</div>
</body>
</html>

Similar Messages

  • Insert/update multiple tables from one form.

    I'm working on an app. that requires the user to fill out a form. The contents from the form is then used to either insert new records or update existing records in multiple tables. Is that possible? Can someone give a details example?

    You should create a form like you would create it having one table. Use row_id as primary key. The rest of the process are done by the triggers - those will take care of updating the right table depending which column was hit.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Query DB2 tables from oracle using normal view

    This is with regard to querying db2 tables using oracle views. The view is created using dblink. The querying is not an one time activity.querying will be done once in a day. Can i use normal view (will it work ) or should i use materialised view. will i be able to view the added records in db2 table using normal view?
    thanks,
    vinodh

    Vinodh2 wrote:
    This is with regard to querying db2 tables using oracle views. The view is created using dblink. The querying is not an one time activity.querying will be done once in a day. Can i use normal view (will it work ) or should i use materialised view. will i be able to view the added records in db2 table using normal view?How can the SQL select statement via a dblink not work for a view, but the same SQL select statement work for a materialised view?
    Do you think the database link or remote database care whether the select SQL that hits it, comes from a PL/SQL procedure, a view, a materialised view, a job or whatever else? It has no idea what/who is behind that select SQL - and nor does it care.
    As for the benefits of a view vs. a materialised view - that depends on the requirements for needing to use that foreign database's data in the local database.

  • Query builder: tables from Database Link

    Hi APEX people,
    Is there a way to use tables from a (remote) Database Link in the Query Builder?
    In the Query Builder I seem to have only access to locally (schema) stored tables.
    I already tried to define a Synonym for the remote tables I wanted to use, but that didn't work either.
    Thanks in advance.
    Maurice

    Hi,
    First of all, can you select from them ie
    SELECT  *
    FROM my_table@my_linkAlso you can't see them as tables in the schema because they're not tables in the schema.
    Try creating a view like...
    CREATE OR REPLACE FORCE VIEW m_table_vw AS
    SELECT *
    FROM my_table@my_link;You should be able to see the view in the schema in the query builder and use that.
    Cheers
    Ben

  • Saving values into table from Interactive Form

    Hallo together,
    iam trying to do the example "Include Tables" (SAP Interactive Forms by Adobe - Galileo Press).
    It works, but not as described. When i want to change data in the interactive_forms ui element and press the webdynpro native button send, the value at the webdynpro table does not change. When i change the value at the webdynpro table and press the send button at the form or change the line at the webdynpro, the value in the adobe formular changes too. Thats one problem.
    The other problem is that i want to save the changed/added data from the formular at the database. What to do? The form layout is "ZCI Layout" and i added the script:
    DO NOT MODIFY THE CODE BEYOND THIS POINT - 800.20070708051308.406522.403406 - ContainerFoundation_JS
    I also added this into "wddomodifyview":
    METHOD wddomodifyview .
      DATA: lr_interactive_form TYPE REF TO cl_wd_interactive_form,
                 lr_method_handler TYPE REF TO if_wd_iactive_form_method_hndl.
      CHECK first_time = abap_true.
      lr_interactive_form ?= view->get_element( 'FORM' ).
      lr_method_handler ?= lr_interactive_form->_method_handler.
      lr_method_handler->set_legacy_editing_enabled( abap_true ).
    ENDMETHOD.
    I selected also:
    execute at: "Server and Client"
    I dont know what to do anymore.
    Best regards
    Philip

    Hi,
    To make an input enabled table. I would suggest to use TABLE element from the PDF library and then binding the columns from your context.
    Step 1: Library -> Standard ->Table
    Select create using assistance.
    Select body rows vary depending on data .
    Select number of Columns in your case it will be 4.
    Then proceed further and finish as per your need.
    Step 2:
    Select a table Column .
    Select Pallets->Object then chnage the cell type from Text to text field.
    Then click on binding tab and bind it to the respective field from hierarchy.
    Select upgrade the following properties radio button and check only "default value" option.
    This will create binding something like this $record.SCARR.DATA[*].CARRID
    Follow this for all other columns.
    Step 3:
    Now create a button in the View holding your form(you can also use SUBMIT button of form). On action event of this button right the following code to get all the changed values from Table.
    data lt_scarr type wd_this->elements_scarr.
      call method lo_nd_scarr->get_static_attributes_table
        importing
          table = lt_scarr.
    LT_SCARR will contain all the new values from Form. Then use this table to update ur database table.
    Thanks,
    Abhishek

  • Optimize MySQL table from Java

    Hi everyone,
    I was wondering if it's possible to run the optimize command on a mysql database table from within java?
    If so, does anyone have any code?
    Thanks,
    BBB

    assuming you have a table called myTable the code should look like...
    Connection c =// from somewhere
    Statement s = c.createStatement();
    s.execute("OPTIMIZE TABLE myTable");
    s.close();please note all the following...
    1) MySQL will lock the table when you optimize the table so if there are open locks this could deadlock while waiting. Also all other queries to be performed on the table will wait, just a performance warning.
    2) The logged-in user must have both SELECT and INSERT permission on the table to execute an OPTIMIZE.

  • Forms Designer - Unable to remove Child Table from the form

    Hello,
    While testing adding additional attributes, I have assigned an additional child table to the form. However I am not able to remove it. I get an error message: "This version has been made active. Add/Update/Delete not allowed."
    I tried creating new version and making it active to remove 'active' status from the form I modified, but still getting the same error. What am I doing wrong? Thank you in advance.

    creating new version and making it active to remove 'active+'
    Make new version then remove child form and then make version active..
    You are making version active b4 removing child table.
    Don't change the sequence which I have written above.

  • Query with Tables from another Database

    Hi.
    I have a problem with a Query that executes a stored procedure that inserts data in a Table from another DataBase. The problem is when I try to execute a Query with the data related of that table using the user parameters of SBO ('[%0]'....'[%3]'). I use the following parameters for reference to the Table:
    "....FROM [-BDName-].[dbo].[-TableName-] T1..... "
    Any suggestions? Thanks a lot....
    (Suggestions in English or Spanish)

    None

  • Synonym required to query custom tables from Oracle Apps database

    When creating an Answers report that queries from a table owned by a custom schema (not APPS), I cannot query the table and get error. Once I add a Synonym for APPS on this table, then OBIEE works normally.
    Since OBIEE is logging in as the APPS user, are Synonyms required for all non-APPS tables/views or is there another feature of the Administrator where it can store the table alias (our typical owner of custom tables is XXFI)?

    OK, well "compare" can mean one of two things: Compare structure or compare contents. Here is a quick script to compare column structures of two tables on one database:
    (select COLUMN_NAME,
    DATA_TYPE,
    DATA_LENGTH,
    DATA_PRECISION,
    DATA_SCALE,
    NULLABLE
    from dba_Tab_columns
    where owner=:OWNR1
    and table_name = :tablename
    minus
    select COLUMN_NAME,
    DATA_TYPE,
    DATA_LENGTH,
    DATA_PRECISION,
    DATA_SCALE,
    NULLABLE
    from dba_Tab_columns
    where owner=:ownr2
    and table_name = :tablename)
    union all
    (select COLUMN_NAME,
    DATA_TYPE,
    DATA_LENGTH,
    DATA_PRECISION,
    DATA_SCALE,
    NULLABLE
    from dba_Tab_columns
    where owner=:ownr2
    and table_name = :tablename
    minus
    select COLUMN_NAME,
    DATA_TYPE,
    DATA_LENGTH,
    DATA_PRECISION,
    DATA_SCALE,
    NULLABLE
    from dba_Tab_columns
    where owner=:ownr1
    and table_name = :tablename)
    If this query returns any rows, then these indicate that there are structural differences between the tables. We do a minus in both directions to ensure that an additional column in either schema will be returned in the query.
    If you are going across dblinks to remote tables then you have to amend the "dba_tab_columns" to "sys.dba_tab_columns@yourdblink"
    If you also want to compare indexes, triggers, etc then do the same sort of thing for the associated dba_ views for those objects.
    And if you want to compare table contents, then often the fastest way is also to check minuses in both directions, if the tables are not too big:
    e.g.
    (select * from schema1.table@dblink1
    minus
    select * from schema2.table@dblink2)
    union all
    (select * from schema2.table@dblink2
    minus
    select * from schema1.table@dblink1)
    local tables, of course, simply omit the "@dblink" issues.
    There are tools to help in such things. TOAD, for example, has a pretty good schema comparison tool, and there are plenty of other options out there. But if you need to script this yourself then the logic I've shown is a good starting point.
    Cheers,
    Mike

  • Accessig mySQL table from Oracle/ODBC

    Hi all,
    my problem is about different data types between Oracle and mySQL and how i can "cast" them.
    My enviroment is:
    - Oracle Express 10g
    - mySql (in different machine)
    - using HS with ODBC
    In mySql i have a table with BIGINT column and TEXT column.
    I can query BIGINT column but the result isn't as i aspect, for example:
    in mySql: select itemid from items, returns in correct way:
    22676
    22677
    22679
    in Oracle: select "itemid" from "items"@hslink, returns:
    2.3285E+11
    2.3715E+11
    2.4574E+11
    With TEXT fields instead i receive a "sintax error":
    SQL> select "params" from "items"@hslink;
    ERROR:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    |Generic Connectivity Using ODBC||MySQL||ODBC 3.51 Driver||mysqld-5.0.51a-24+lenny2|You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"items" WHERE
    "itemid"=232854532658' at line 1 (SQL State: 37000; SQL Code: 1064)
    ORA-02063: preceding 2 lines from HSLINK
    The "params" column is declared TEXT in mySql and is seen as LONG from Oracle.
    At last, the general question is: in which way i have to manage or cast these different data types?
    thanks.
    roberto

    Hi,
    I have the same problem.
    SQL> select "updatetxt" from "updatedb"@sworks;
    ERROR:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][unixODBC][MySQL][ODBC 3.51
    Driver][mysqld-4.0.16]You have an error in your SQL syntax. Check the manual
    that corresponds to your MySQL server version for the right syntax to use near
    '"UPDATEDB" WHERE "udid"=1' at line 1 (SQL State: 37000; SQL Code: 1064)
    ORA-02063: preceding 2 lines from SWORKS
    sworks is db link to MYSQL db
    and table in mysql looks like:
    Supportworks Sql> describe updatedb;
    ---------------------------------------------------------------+
    | Field | Type | Null | Key | Default | Extra |
    ---------------------------------------------------------------+
    | callref | int(11) | | MUL | 0 | |
    | updatetime | varchar(20) | YES | | NULL | |
    | timespent | int(11) | YES | | NULL | |
    | repid | varchar(44) | YES | | NULL | |
    | groupid | varchar(160) | YES | | NULL | |
    | udtype | int(11) | YES | | NULL | |
    | udindex | int(11) | YES | | NULL | |
    | updatetxt | text | YES | | NULL | |
    | udcode | varchar(64) | YES | MUL | NULL | |
    | udsource | varchar(64) | YES | | NULL | |
    | udid | int(11) | | PRI | NULL | auto_increment |
    | updatetimex | int(11) | YES | | NULL | |
    | aid | varchar(64) | YES | | NULL | |
    | aaid | varchar(64) | YES | | NULL | |
    | custom_a | varchar(254) | YES | | NULL | |
    | custom_b | varchar(254) | YES | | NULL | |
    | custom_c | varchar(254) | YES | | NULL | |
    | custom_d | varchar(254) | YES | | NULL | |
    | custom_e | varchar(254) | YES | | NULL | |
    | custom_f | varchar(254) | YES | | NULL | |
    ---------------------------------------------------------------+
    20 rows in set (0.00 sec)
    and table in Oracle DB(10204) looks like
    SQL> desc "updatedb"@sworks
    Name Null? Type
    callref NOT NULL NUMBER(10)
    updatetime VARCHAR2(20)
    timespent NUMBER(10)
    repid VARCHAR2(44)
    groupid VARCHAR2(160)
    udtype NUMBER(10)
    udindex NUMBER(10)
    updatetxt LONG
    udcode VARCHAR2(64)
    udsource VARCHAR2(64)
    udid NUMBER(10)
    updatetimex NUMBER(10)
    aid VARCHAR2(64)
    aaid VARCHAR2(64)
    custom_a VARCHAR2(254)
    custom_b VARCHAR2(254)
    custom_c VARCHAR2(254)
    custom_d VARCHAR2(254)
    custom_e VARCHAR2(254)
    custom_f VARCHAR2(254)
    Just wondering what I am doing wrong and how to overcome it.
    database version is 10204
    mysql db version is 4.0.16
    Please help
    Thanks,
    Rish

  • I want to save updated record only in stage table from the form..

    I have created form with two block
    1...criteria base block
    2....details block....(This database block i.e. on stage table).
    I am inserting data into detail block (i.e. stage table )with no commit through find button.
    data is showing there with status 'FRESH'
    suppose i changed item cost, now status goes change to 'NEW'
    now when i am saving it is saving all data into stage but i want to save only data with 'NEW' status.
    Please Help me
    I tried it by deleting data from stage where status ='FRESH' on post_update trigger but is not supporting.
    Edited by: ManojT on Sep 3, 2009 6:52 AM

    Hi I am using this procedure in find button to get data on detail block
    PROCEDURE GET_ITEM_DATA IS
    i number :=0;
    L_COUNT NUMBER;
    S_COUNT NUMBER;
    CURSOR GET_DTL IS
    (SELECT MSI.SEGMENT1 AS "ITEM" ,
    MSI.ITEM_TYPE,
    MICV.CATEGORY_SET_NAME,
    XXCAVM_GET_ITEM_COST_PKG.CAVM_GET_COST_DATE(MSI.INVENTORY_ITEM_ID,ORG.ORGANIZATION_ID,3) "LAST_UPDATE_DATE",
    XXCAVM_GET_ITEM_COST_PKG.CAVM_GET_ITEM_COST(MSI.INVENTORY_ITEM_ID,ORG.ORGANIZATION_ID,1) "ITEM_COST_F",
    XXCAVM_GET_ITEM_COST_PKG.CAVM_GET_ITEM_COST(MSI.INVENTORY_ITEM_ID,ORG.ORGANIZATION_ID,3) "ITEM_COST_P",
    MSI.INVENTORY_ITEM_ID,
    ORG.ORGANIZATION_ID,
    ORG.ORGANIZATION_CODE
    FROM
    (SELECT ORGANIZATION_CODE,ORGANIZATION_ID
    FROM ORG_ORGANIZATION_DEFINITIONS ) ORG,
    MTL_SYSTEM_ITEMS_FVL MSI,
    MTL_ITEM_CATEGORIES_V MICV
    WHERE CATEGORY_SET_NAME LIKE 'Product'
    AND MSI.INVENTORY_ITEM_ID =MICV.INVENTORY_ITEM_ID
    AND MSI.ORGANIZATION_ID = MICV.ORGANIZATION_ID
    AND ORG.ORGANIZATION_ID = MSI.ORGANIZATION_ID
    AND ORG.ORGANIZATION_ID = MICV.ORGANIZATION_ID
    AND MSI.INVENTORY_ITEM_STATUS_CODE = 'Active'
    AND MSI.SEGMENT1 =NVL(:CTRL_BLK.INV_ITEM,MSI.SEGMENT1)
    AND MICV.CATEGORY_SET_NAME = NVL(:CTRL_BLK.ITEM_FAMILY,MICV.CATEGORY_SET_NAME)
    AND MSI.ITEM_TYPE = NVL(:CTRL_BLK.ITEM_TYPE,MSI.ITEM_TYPE)
    AND ORG.ORGANIZATION_CODE = NVL(:CTRL_BLK.ORGANIZATION,ORG.ORGANIZATION_CODE));
    --AND MSI.INVENTORY_ITEM_ID = 8063
    --AND MSI.ORGANIZATION_ID=204);
    BEGIN
    FOR GRD IN GET_DTL LOOP
         SELECT COUNT(*) INTO S_COUNT FROM XXCAVIUM_ITEM_CST_STG
         WHERE ITEM = GRD.ITEM
         AND ORG = GRD.ORGANIZATION_CODE
         AND ITEM_TYPE = GRD.ITEM_TYPE
         AND CATEGORY_SET_NAME = GRD.CATEGORY_SET_NAME;
              IF S_COUNT >0 THEN                         
                                            NULL;
                        ELSE
                        INSERT INTO XXCAVIUM_ITEM_CST_STG
                             (ORG,CATEGORY_SET_NAME,ITEM,COST_PENDING,
                             COST_FROZEN,ITEM_TYPE,LAST_UPDATE_DATE,
                             COST_TYPE_ID,ORGANIZATION_ID,
                             INVENTORY_ITEM_ID,COST_ELEMENT,STATUS)
                             VALUES(GRD.ORGANIZATION_CODE,GRD.CATEGORY_SET_NAME,GRD.ITEM,GRD.ITEM_COST_P,GRD.ITEM_COST_F      ,
                             GRD.ITEM_TYPE,GRD.LAST_UPDATE_DATE,3,GRD.ORGANIZATION_ID,GRD.INVENTORY_ITEM_ID,'Material','FRESH');
                        END IF;
    END LOOP;
    GO_BLOCK('XXCAVIUM_DTL_BLK');
    EXECUTE_QUERY;
    EXCEPTION
    WHEN OTHERS THEN
    FND_MESSAGE.DEBUG('Exception occured during the process. Error Message: '||SQLERRM);
    END;
    Please suggest if any

  • Querying Nested Tables from BO

    Hi,
    I have a nested table [VA_GT_HC_ASIA_SGP ] in Oracle. The Inner Object in the nested table has got 4 columns, which has to be displayed in the WebI Report.
    Hece I created the table as derived table in Universe by the below query.
    select a.COL1, b.COL2, b.COL3, b.COL4, b.COL5 from VA_GT_HC_ASIA_SGP a, Table(a.OB_GT_HC_MAINT_INFO) b
    But performance is very slow. Please advice if there exists a better way to do this.
    Best Regards,
    Anu

    The Query is:-SELECT A.ID, A.NAME, A.COMB, B.C1,B.C2, B.C3  FROM NT_KFD_RFT_TEST_DATE A, TABLE(OB_KFD_RFT_DATA) B
    Nested Table structure Example:-
    ID       NAME    COMB   OB_KFD_RFT_DATA
    01      TEST     ALL    
    The inner table (OB_KFD_RFT_DATA) structure is
    C1      C2        C3
    23.5   56.7   78.9
    00.9   76.9   53.3
    12.4   33.4   23.2
    Here outer record is 01 TEST ALL, and inner record is the 3 row decimal numbers.
    In Universe, I need to create Objects from C1,       C2,      C3 columns.
    Currently i'm doing it with derived table (by running above query). Is there any other option to do it?
    Thanks,
    Anu

  • Querying the tables from CIS

    Hi,
    I need to query the stellent content store( database) and get the values through my CIS application code.Is it possible ? if so how ?
    For ex : if want to check the existence of a folder name , how can i query and check that from CIS Code.

    The Query is:-SELECT A.ID, A.NAME, A.COMB, B.C1,B.C2, B.C3  FROM NT_KFD_RFT_TEST_DATE A, TABLE(OB_KFD_RFT_DATA) B
    Nested Table structure Example:-
    ID       NAME    COMB   OB_KFD_RFT_DATA
    01      TEST     ALL    
    The inner table (OB_KFD_RFT_DATA) structure is
    C1      C2        C3
    23.5   56.7   78.9
    00.9   76.9   53.3
    12.4   33.4   23.2
    Here outer record is 01 TEST ALL, and inner record is the 3 row decimal numbers.
    In Universe, I need to create Objects from C1,       C2,      C3 columns.
    Currently i'm doing it with derived table (by running above query). Is there any other option to do it?
    Thanks,
    Anu

  • Help with inserting Date into MySQL DB from registration form input

    I'm trying to automatically input the registration date of a customer into my MySQL DB. Nothing seems to work. I've tried timestamp in a table field, I've tried a hidden field in the form. Any suggestions?

    You can use NOW() in the insertion record code, it will display like a time stamp format (date + time). Otherwise u can use this if u just want to store the date, $today = date("j F Y "); . It will display like 21 May 2009. Further information about date() function you can get it HERE.

  • How to insert a JPG file into a Table from a Form?

    I create a Schema and a Table as follows:
    SQL> create user myphoto identified by myphoto;
    User created.
    SQL> grant connect,resource to myphoto;
    Grant succeeded.
    SQL> create table myphoto.photo_table
    2 (photo_id varchar2(10) primary key,
    3 photo_content blob);
    Table created.
    I would like to build an Oracle Form with a Text Item to enter the full path and filename to be uploaded and inserted into the photo_table; and a Push Button to insert the jpg file into the photo_table.
    Can any one give me details on how this could be done?

    Hi,
    have a look at webutil on otn.oracle.com/products/forms ---> Webutil
    Webutil has the capability to load files into the database.
    Frank

Maybe you are looking for

  • CSS Bypassing farm traffic based on matching HTTP header

    Hi, I am trying to find out whether the CSS is able to bypass specific traffic. I have an existing content to match all HTTP and send to a farm. However, there are some HTTP flows i dont want to goto the farm, i just want CSS to route them onward to

  • Acrobat Pro XI - How to check 32bit of x64 ?

    The about box only shows Adobe Acrobat XI v.11.0.06 Out of curiosity: how to see if it is a 32bit or x64 version? Thanks =

  • Mapping parent to sub

    Hi. I have a table (let's call it 'Node') with fields: - id (primary key) - id_parent (foreign key to id-field) I can easily map the table to get it's parent-object, but I can't seem to get Node's sub-nodes (1 to many) mapped in toplink workbench. I

  • Lesson 8: RMI, Error in Run the RemoteServer Server Object

    Hello guys, Please Help! I try to test and run the samples in JavaTM Programming Language Basics, Part 1 Lesson 8: Remote Method Invocation http://developer.java.sun.com/developer/onlineTraining/Programming/BasicJava1/rmi.html I already compiled the

  • Hits keep coming

    After all the BS with the mouse and keyboard, I now verify the disk in Disk Utility and get, The Volume Macintosh HD was found corrupt and needs to be repaired. It tells me to use disk utility, but the repair button is grayed out. Does this mean I ha