Help the PLSQL functions

I have this SELECT below I have to run it in a LOOP for each activity_id (record) that I get from the join.
In addition, this SELECTION should be run in multiple places in a procedure for details and for whom record-> I run the assign_course or the assign_test as below.

Can someone please help me to write a function that would have this select.inputs are strtplanid, strPersonid, p_objective_id
FOR activity_id( IN
               (SELECT objact.activity_id, objact.activity_type,objact.IS_REQUIRED
                  FROM test_training_plan tp,
                       test_tp_objective tp_obj,
                       test_train_obj_activity objact
                 WHERE tp.tplan_id = tp_obj.tplan_id
                   AND tp.tplan_id = strtplanid
                   AND tp_obj.t_objective_id = p_objective_id
                   AND tp_obj.t_objective_id = objact.t_objective_id
                   AND objact.activity_id NOT IN (
                          SELECT tplplr.activity_id
                            FROM test_learning_record lr,
                                 test_learning_record lr1,
                                 test_tp_learning_activity tplplr
                           WHERE lr.lr_catalog_history_id = tplplr.activity_id
                             AND lr.learning_record_id =
                                                      tplplr.activity_lp_lr_id
                             AND tplplr.tp_lp_lr_id = lr1.learning_record_id
                             AND lr1.lr_catalog_history_id =
                                               strtplanid
                             AND lr.lr_person_id = strPersonid
                             AND lr1.lr_person_id = strPersonid
                             AND lr.status IN
                                           ('PASSED', 'WAIVED', 'TESTED_OUT'))
                   AND objact.activity_id NOT IN (
                          SELECT event_id
                            FROM test_train_obj_activity toa,
                                 test_event_sessions sessions,
                                 test_learning_record lr1,
                                 test_tp_learning_activity tplearnact,
                                 test_learning_record tplr
                           WHERE toa.activity_id = sessions.event_id
                             AND sessions.event_session_id =
                                                     lr1.lr_catalog_history_id
                             AND lr1.learning_record_id =
                                                  tplearnact.activity_lp_lr_id
                             AND tplearnact.tp_lp_lr_id =
                                                       tplr.learning_record_id
                             AND tplr.lr_catalog_history_id =
                                               strtplanid
                             --AND toa.is_required = 1
                             AND toa.t_objective_id = obj.t_objective_id
                             AND tplr.lr_person_id = strPersonid
                             AND lr1.lr_person_id = strPersonid
                             AND lr1.status IN
                                           ('PASSED', 'WAIVED', 'TESTED_OUT')))
            
            LOOP
           
               IF (activity.activity_type = 'Course')
               THEN
                  
                   SP_ASSIGN_COURSETP(strPersonid,activity.activity_id,strPersonid,activity.activity_type,
                  activity.IS_REQUIRED,strtplanid,v_straccreditingorg); 
                                                  
                ELSif (activity.activity_type ='Test')
                THEN
                  SP_ASSIGN_TESTTP(strPersonid,activity.activity_id,strPersonid,activity.activity_type,
                  activity.IS_REQUIRED,strtplanid,v_straccreditingorg); 
                
                END IF;

Hello

Read this: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2376
And: http://www.oracle.com/pls/db102/search?remark=quick_search&word=REF+CURSOR+VARIABLE&tab_id=&format=ranked

Tags: Database

Similar Questions

  • Help the ActionScript functions

    Hey, can someone please help me find a solution in this code that I have. I use this code to make a rhythm game gameplay mechanics, but there seems to be a problem with the code that I colored in red.

    var timer1:Timer = new Timer (1000,1);

    Timer1.addEventListener (TimerEvent.TIMER, addRed);

    var score: int;

    stage.addEventListener (KeyboardEvent.KEY_DOWN, hitRed);

    function addRed(e:TimerEvent) {}

    var activeRed:red = new red();

    activeRed.x = 75;

    activeRed.y = - 100;

    activeRed.vy = 7.5;

    addChild (activeRed);

    activeRed.addEventListener (Event.ENTER_FRAME, animRed);

    }

    function hitRed(activeRed:KeyboardEvent) {}

    If (activeRed.keyCode == Keyboard.S) {}

    activeRed.target.removeEventListener (Event.ENTER_FRAME, animRed);

    activeRed.target.parent.removeChild (activeRed);

    score += 1

    }

    }

    function animRed(e:Event) {}

    var borderBottom = 800 + (e.target.height / 2);

    e.Target.y += e.target.vy;

    if(e.Target.y > borderBottom) {}

    e.target.removeEventListener (Event.ENTER_FRAME, animRed);

    e.target.parent.removeChild (e.target);

    }

    }

    Since you declare the variable activeRed inside a function, its scope is limited inside this function. Try declare it outside the function.

  • Helps the REST FUNCTION

    Hi all

    I am preparing the review of the basic course 1 SQL.
    I'm confused about function REST.
    I use Sybex (11g) for my studies.

    Now the REST is set as follows:
    REST (x, y): the function returns the rest if it divides X.

    Now the following queries have been used.

    Select the stay (13.5), stay (12.5), Remainder (12.5,5) twice;
    This gave-2, 2 and 2.5 respectively.
    My confusion is how remains (12.5) will return - 2 instead of 3.
    I ran the query using sql and still have-2, please someone must help very urgent
    as I don't understand why it must be so.


    Thank you



    Harrison

    Hello

    If you look in the documentation Oracle the function else is

    rest (m, n)

    The rest is calculated as:

    m (n * X) where X is the closest whole number of m / n

    http://www.techonthenet.com/Oracle/functions/remainder.php
    Thank you

  • help the PLSQL Collections

    Table of database products and category of two columns.

    Table: catalogue
    products in category
    ----------- ------------
    Fruits Apple
    vegetables carrots
    Pepsi soda
    vegetables potatoes
    fruit grapes
    Orange fruit
    cabbage vegetable
    soda Coke

    I need to read the records in the catalog of the table and store it in a sort of collection plsql. I then read this collection and write the output as follows:

    Note: the categories and products must be sorted alphabetically in the output.

    OUTPUT
    ------------

    fruit, Apple, grape, orange
    soda Coke, pepsi
    vegetable cabbage, carrots, potatoes

    Please help me because the way in which this can be done?

    Thank you
    G
    SQL> CREATE OR REPLACE
      2    TYPE PRODUCT_TBL IS TABLE OF VARCHAR2(20);
      3  /
    
    Type created.
    
    SQL> CREATE OR REPLACE
      2    TYPE CATALOG_OBJ IS OBJECT(
      3                               category     VARCHAR2(20),
      4                               product_list PRODUCT_TBL
      5                              );
      6  /
    
    Type created.
    
    SQL> CREATE OR REPLACE
      2    TYPE CATALOG IS TABLE OF CATALOG_OBJ;
      3  /
    
    Type created.
    
    SQL> SET SERVEROUTPUT ON
    SQL> DECLARE
      2      v_catalog CATALOG;
      3      v_line    VARCHAR2(100);
      4  BEGIN
      5      WITH t AS (
      6                 SELECT 'fruit' category,'apple' product FROM dual UNION ALL
      7                 SELECT 'vegetable','carrot' FROM dual UNION ALL
      8                 SELECT 'soda','pepsi' FROM dual UNION ALL
      9                 SELECT 'vegetable','potato' FROM dual UNION ALL
     10                 SELECT 'fruit','grapes' FROM dual UNION ALL
     11                 SELECT 'fruit','orange' FROM dual UNION ALL
     12                 SELECT 'vegetable','cabbage' FROM dual UNION ALL
     13                 SELECT 'soda','coke' FROM dual
     14                )
     15      SELECT  CATALOG_OBJ(
     16                          category,
     17                          CAST(COLLECT(product) AS PRODUCT_TBL)
     18                         )
     19        BULK  COLLECT INTO v_catalog
     20        FROM  t
     21        GROUP BY category
     22        ORDER BY category;
     23      FOR i IN 1..NVL(v_catalog.count,0) LOOP
     24        v_line := rpad(v_catalog(i).category,10);
     25        FOR j IN 1..v_catalog(i).product_list.count loop
     26          v_line := v_line || v_catalog(i).product_list(j) || ', ';
     27        END LOOP;
     28        v_line := RTRIM(v_line,', ');
     29        DBMS_OUTPUT.PUT_LINE(v_line);
     30      END LOOP;
     31  END;
     32  /
    fruit     apple, grapes, orange
    soda      pepsi, coke
    vegetable carrot, potato, cabbage
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

  • Call the PLSQL function - ORA-31013: XPATH not valid expressioon

    I tried the following SQL statement. When I called the function, it in error.


    Select *.

    Since the release of v$.

    ----

    1Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - 64bi
    2PL/SQL version 10.2.0.3.0 - Production
    3CORE 10.2.0.3.0Production
    4AMT for Linux: release 10.2.0.3.0 - Production
    5NLSRTL Version 10.2.0.3.0 - Production



    function READ_SYSTEM_RESPONSE (PARAM IN CLOB)

    RETURN NUMBER

    AS

    " l_namespace varchar2 (1000): =' xsi: schemaLocation =" http://www.UNECE.org/CEFACT/namespaces/StandardBusinessDocumentHeader ' PackageProxy.xsd '

                                    xmlns:sh=" http://www.UNECE.org/CEFACT/namespaces/StandardBusinessDocumentHeader "

                                    xmlns:ef=" http://www.efatura.gov.tr/package-namespace "

                                    xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "';

    XmlType x

    : = XMLTYPE ("<?") XML version = "1.0" encoding ="UTF - 8"? >

    " < sh: StandardBusinessDocument xsi: schemaLocation =" http://www.UNECE.org/CEFACT/namespaces/StandardBusinessDocumentHeader ' PackageProxy.xsd '

                          xmlns:sh=" http://www.UNECE.org/CEFACT/namespaces/StandardBusinessDocumentHeader "

                          xmlns:ef=" http://www.efatura.gov.tr/package-namespace "

                          xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance ">

    < sh: StandardBusinessDocumentHeader >

    < sh: HeaderVersion > 1.0 < / sh: HeaderVersion >

    < / sh: StandardBusinessDocumentHeader >

    (< / sh: StandardBusinessDocument > ');

    Ana CURSOR IS

    SELECT 1 - EXTRACTVALUE (VALUE (p),'/ sh: StandardBusinessDocumentHeader/sh: HeaderVersion', l_namespace) AS IMZA

    TABLE (XMLSEQUENCE (EXCERPT of (x,'/ sh: StandardBusinessDocument', l_namespace))) p;

    BEGIN

    FOR ana IN r

    loop

    dbms_output.put_line ('-');

    end loop;

    RETURN 1;

    EXCEPTION WHEN OTHERS THEN

    dbms_output.put_line (SQLERRM);

    RETURN 0;

    END;

    Delete this l_namespace chain, it has nothing to do there, it is not a namespace declaration:

    "xsi: schemaLocation ="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader PackageProxy.xsd

    As a general rule, simply declare the or - prefixes or by default - you need resolve the XPath expression.

    Once you correct this part, you will discover that your query returns null.

    This is because the XPath expression is not point to any node.

    Try this instead:

    SELECT EXTRACTVALUE)

    VALUE (p)

    , ' / sh: StandardBusinessDocument/sh: StandardBusinessDocumentHeader/sh: HeaderVersion'

    l_namespace

    ) AS IMZA

    TABLE)

    XMLSEQUENCE)

    EXTRACT (x, ' / sh: StandardBusinessDocument', l_namespace)

    )

    ) p

    ;

  • Helps the analytic function

    Here is an example of the table data:
    ID    NAME             Start                  
    1     SARA             01-JAN-2006     
    2     SARA             03-FEB-2006     
    3     LAMBDA             21-MAR-2006     
    4     SARA             13-APR-2006     
    5     LAMBDA             01-JAN-2007     
    6     LAMBDA             01-SEP-2007     
    I would get this:
    Name        Start               Stop
    SARA        01-JAN-2006    20-MAR-2006
    LAMBDA      21-MAR-2006     12-APR-2006
    SARA        13-APR-2006     31-DEC-2006
    LAMBDA      01-JAN-2007      <null>
    I tried using partition and run the function but partition name combines all the lines of Sara and Lambda lines into a single group/partition that is not I am trying to get.
    Is there an analytic function or other means to achieve to combine date ranges only when the same person appeared conescutively?
    Thank you.

    This can be easily achieved using tabibitosan:

    First of all, you need to identify 'groups', that each name in the list belongs

    with sample_data as (select 1 id, 'SARA' name, to_date('01/01/2006', 'dd/mm/yyyy') start_date from dual union all
                         select 2 id, 'SARA' name, to_date('03/02/2006', 'dd/mm/yyyy') start_date from dual union all
                         select 3 id, 'LAMBDA' name, to_date('21/03/2006', 'dd/mm/yyyy') start_date from dual union all
                         select 4 id, 'SARA' name, to_date('13/04/2006', 'dd/mm/yyyy') start_date from dual union all
                         select 5 id, 'LAMBDA' name, to_date('01/01/2007', 'dd/mm/yyyy') start_date from dual union all
                         select 6 id, 'LAMBDA' name, to_date('01/09/2007', 'dd/mm/yyyy') start_date from dual)
    select id,
           name,
           start_date,
           lead(start_date, 1, to_date('31/12/9999', 'dd/mm/yyyy')) over (order by start_date) next_start_date,
           row_number() over (order by start_date)
             - row_number() over (partition by name order by start_date) grp
    from   sample_data;
    
            ID NAME   START_DATE NEXT_START_DATE        GRP
    ---------- ------ ---------- --------------- ----------
             1 SARA   01/01/2006 03/02/2006               0
             2 SARA   03/02/2006 21/03/2006               0
             3 LAMBDA 21/03/2006 13/04/2006               2
             4 SARA   13/04/2006 01/01/2007               1
             5 LAMBDA 01/01/2007 01/09/2007               3
             6 LAMBDA 01/09/2007 31/12/9999               3
    

    You can see the group number is generated by comparing the rownumber overall of all lines (in order) with the rownumber of the rowset by name (in the same order) - when there is a gap because another name appears between the two, the group number changes.

    Once you have identified the number of group for each set of rows, it is easy to find the min / max values in this group:

    
    with sample_data as (select 1 id, 'SARA' name, to_date('01/01/2006', 'dd/mm/yyyy') start_date from dual union all
                         select 2 id, 'SARA' name, to_date('03/02/2006', 'dd/mm/yyyy') start_date from dual union all
                         select 3 id, 'LAMBDA' name, to_date('21/03/2006', 'dd/mm/yyyy') start_date from dual union all
                         select 4 id, 'SARA' name, to_date('13/04/2006', 'dd/mm/yyyy') start_date from dual union all
                         select 5 id, 'LAMBDA' name, to_date('01/01/2007', 'dd/mm/yyyy') start_date from dual union all
                         select 6 id, 'LAMBDA' name, to_date('01/09/2007', 'dd/mm/yyyy') start_date from dual),
         tabibitosan as (select id,
                                name,
                                start_date,
                                lead(start_date, 1, to_date('31/12/9999', 'dd/mm/yyyy')) over (order by start_date) next_start_date,
                                row_number() over (order by start_date)
                                  - row_number() over (partition by name order by start_date) grp
                         from   sample_data)
    select name,
           min(start_date) start_date,
           max(next_start_date) stop_date
    from   tabibitosan
    group by name, grp
    order by start_date;
    
    NAME   START_DATE STOP_DATE
    ------ ---------- ----------
    SARA   01/01/2006 21/03/2006
    LAMBDA 21/03/2006 13/04/2006
    SARA   13/04/2006 01/01/2007
    LAMBDA 01/01/2007 31/12/9999
    

    If you want the date to appear as null max, you will need to use a cast or decode to change it - I'll leave that as an exercise for you to do! I'll also let you to find how to get the day before for the stop_date.

  • Help the analytical functions

    I have a requirement to get the records of previous values, I used the LEAD feature. The final result should return only rows that have multiple records... If its only one record then that is not part of the result.
    --Table Creation
    CREATE TABLE EHR(  ID      NUMBER,  NAMEID  VARCHAR2(100),  SAL     NUMBER,  DT      DATE);
    
    -- Inserting the data
    Insert into ehr  (ID, NAMEID, SAL, DT)
     Values  (1, 'A', 100, TO_DATE('10/08/2012 12:35:10', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into ehr    (ID, NAMEID, SAL, DT)
     Values    (1, 'A', 200, TO_DATE('10/09/2012 12:35:16', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into ehr    (ID, NAMEID, SAL, DT)
     Values    (1, 'A', 300, TO_DATE('10/10/2012 12:35:21', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into ehr    (ID, NAMEID, SAL, DT)
     Values    (2, 'B', 100, TO_DATE('10/08/2012 12:35:10', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into ehr    (ID, NAMEID, SAL, DT)
     Values    (2, 'B', 200, TO_DATE('10/09/2012 12:35:16', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into ehr    (ID, NAMEID, SAL, DT)
     Values    (2, 'B', 300, TO_DATE('10/10/2012 12:35:21', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into ehr    (ID, NAMEID, SAL, DT)
     Values    (3, 'C', 100, TO_DATE('10/17/2012 09:14:35', 'MM/DD/YYYY HH24:MI:SS'));
    COMMIT;
    
    -- Query
    
    select id,nameid,  sal, dt, LEAD(sal,1,0) over ( partition by id order by id )as sal_prev,
    LEAD(dt) over ( partition by id order by id ) as dt_prev
    from ehr
    Order by id , DT desc
    
    -- Result
    ID     NAMEID     SAL     DT                      SAL_PREV     DT_PREV
    1     A     300     10/10/2012 12:35:21 PM     200     10/9/2012 12:35:16 PM
    1     A     200     10/9/2012 12:35:16 PM     100     10/8/2012 12:35:10 PM
    1     A     100     10/8/2012 12:35:10 PM     0     
    2     B     300     10/10/2012 12:35:21 PM     200     10/9/2012 12:35:16 PM
    2     B     200     10/9/2012 12:35:16 PM     100     10/8/2012 12:35:10 PM
    2     B     100     10/8/2012 12:35:10 PM     0     
    3     C     100     10/17/2012 9:14:35 AM     0     
    I don't want the ID 3 because it contains only one record of the result above... rest should come. Any ideas?

    I think you want to delete the order of numbering and change the select * for columns that you need, if not, it seems, why not test on the sample table you provided?

    Edited by: bencol on 17 October 2012 15:05

    Edited by: bencol on 17 October 2012 15:08

  • error in calculation PLSQL function

    Hi friends,

    I have the plsql function below that throw error.

    The function below is written in Apex, if kindly let me know how to solve this error

    The following query checks the existing value and null assigns a value to the select statement. otherwise will assign it to the variable. I don't get how to set dynamically using the select statement

    Function:

    BEGIN
    IF
    : P1_VARIABLE_NAME IS NULL THEN: P1_VARIABLE_NAME: = select... from... (which returns a string)
    ON THE OTHER
    : P1_VARIABLE_NAME
    END
    END

    Error:

    Met the "SELECT" symbol when awaits one of the following numbers: (- + case mod new avg not null current County exists prior min max sql stddev sum variance execute forall time timestamp interval date fusion pipe)

    Hi Pradeep,

    Have you used the suggestion in the post above?
    (Do not use the PL/SQL only the suggested above query block)
    Did you put a semicolon after the query?
    And you always use the PL/SQL code?

    Could you post details of calculation?

    Kind regards
    Kiran

  • Help automate and functions by the numbers

    Hello!

    I need assistance with numbers 3.6.1 for OS X El Capitan. My question is really complicated, and I couldn't even begin to understand what to search using search engines, that is why I turn to the experts in communities for help.

    What I'm trying to do is set up a system where when an a table on a single sheet is changed, the information on a second table on a second sheet is updated to match. Specifically, on the first table on the first worksheet, I keep a spreadsheet of all the video games I have in my collection, and with each game video I save several data as platform, Publisher, genre and ESRB rating points, and so on, as follows:

    On the second picture, I have an assortment of tables of data that takes into account the number of games I have they fall into each of these same points data in separate tables, so, how many games I have for every platform, every Editor, in every kind and with each ESRB rating, as follows:

    I was able to set up all the tables on the second sheet automatic update of the charges for each individual in each category element, so if I add, say, a new game of Nintendo 3DS to the first sheet on the first table, the corresponding to "Nintendo 3DS" number on the table of the second sheet platform is automatically updated. I did this by manually applying the COUNTIF function to each individual B cell in each table and was pointing at the corresponding column of table on the first worksheet with the correspondent of expression of the cell [for Game Boy Advance, for example, it looks like this: COUNTIF (Collection::Table 1: $Platform, "Game Boy Advance")]. Part of what I want to accomplish is to have all the B cells on the second act of sheet as "smart cells", if you want to, where they are all automatically use the COUNTIF function using the expression in each corresponding to a cell, instead of the manual set up I have now. Is something like this? If so, I want finally to do is to have the paintings on the second sheet automatically be updated to take account of the new factors of table on the first worksheet. That is if I add a game to a new platform, we will say Virtual Boy, to the table on the table of the first sheet, is it possible to have the picture of the platform on the second sheet automatically add a new entry for Virtual Boy, and should the COUNTIF automatic formatting for the work of B lymphocytes as well, automatically count the number of entries of Virtual Boy in the platform column the first sheet as well?

    Here is a link to my spreadsheet in iCloud for reference (remember, it's 'View Only'): https://www.icloud.com/numbers/000AvaqQSb1iRb3-5XbyaoNww#My_Collection

    I hope all this makes sense to someone out there, I tried to explain as clearly as I could. I'm still sort of novice in numbers, if I appreciate any amount of teaching or imparting wisdom!

    Thank you

    -Kill

    Kill them salvation.

    for all B cells on the second act of sheet as "smart cells", if you want to, where they are all automatically use the COUNTIF function using the expression in each corresponding to a cell, instead of the manual set up I have now.

    Formula in B2 (and fill by dragging the handle downwards to fill yellow)

    = COUNTIF(Collection::Table 1::$B,A2)

    B2 in the platform table and paste in the length of Table B2. It will show zero because he seeks the wrong column in the table on the sheet Collection.

    Click on the "Collection::Table 1: $B" diamond in the formula editor to select.

    Go to the Map Collection and click on the label C.

    AHA! It always displays zero because does not match the description of length:

    "Very short (less than 5 hours)" on the card product and "Very short" on the Collection sheet.

    The descriptions must match exactly.

    The easy way to change them in the Collection journal is to sort the table. But first of all insert another column, and then type 1 then 2 and fill down. Then you can sort to the original order.

    Now sort the column Length.

    Change the description (copy and paste into each "block")

    Funny looks because the line height are different

    The COUNTIF works because the descriptions are now (the formula now displays column D because of the new column of original order of Collection).

    I'll post this before the time-out annoys me.

    Kind regards

    Ian.

  • With the iPad Pro 9.3.1 running, I do find a way to set the sleep function. I sleep in about two minutes. Help

    With the iPad Pro 9.3.1 running, I do find a way to set the sleep function. I sleep in about two minutes. Help

    (It sleeps)

  • PLSQL function to return the result of the query

    Dear all,

    Oracle Database SE1 11.2.0.1

    I need to create a plsql function which should accept SQL as a parameter, execute it and return the result set.

    Is this possible?

    Madhu.149 wrote:

    I need to create a plsql function which should accept SQL as a parameter, execute it and return the result set.

    Be careful - results games indicate a set of data stored in memory. This is not what are sliders. This isn't how Oracle should be used.

    Imagine that you implement such a result set function - which, on average, requires 1 MB of memory (private server) to store the results of the SQL query. A 100 users mean a 100 MB of memory required server. This is not suitable. Not at all. Never.

    The correct back 'thing' is a handle to SQL cursor (called a ref cursor in this case). A SQL cursor is a "program" - that the appellant runs via the fetch command and generates one or more lines accordingly. Appellant repeatedly runs this slider through calls to fetch until this slider found and returns all rows affected (using consistent readings).

    If you want an abstraction interface that the client can call via PL/SQL code in the database, so this crafting optimal SQL interface, creates the SQL cursor and returns the handle of the cursor (via the ref cursor data type) to the client.

  • Since I use photoshop CC I've not found an easy way to scan by using the discreen function? help please

    Since I use photoshop CC I have not found a way to use the discreen function when you scan... help!

    discreen function?

  • Helps the function of class of SMTP with authentication

    My server no longer supports the php mail() feature.  I need to use the SMTP class with the authentication function in my php code, and they suggested this to replace it: on-with-authentication-in-php-code http://www.yrhostsupport.com/index.php?/Knowledgebase/Article/View/101/2/smtp-class-functi

    So, I tried, but cannot make it work. This is my test form:

    < are method = "post" action = "forms/sendmail - test2.php" onsubmit = "return checkEmail (this);" >

    < script type = "text/javascript" language = "JavaScript" >

    < /script >

    < fieldset > < legend > news < / legend >

    < Label > name < / label >

    < input type = "text".

    name = "name" size = "30" maxlength = "40" / > < br / >

    < label > < span class = 'redText' > * </span > Email < / label >

    < input name = "email" type = "text" size = "30" maxlength = "40" / >

    < br / >

    < label > < span class = 'redText' > * </span > Message < / label >

    < textarea cols = "40" rows = "5" name = "message" type = "text" / > < / textarea > < br / >

    < / fieldset >

    < input type = "reset" value = "Reset" / >

    < input type = value = "submit" / >

    < / fieldset >

    < / make >

    It's sendmail - test2.php where going to the form. It will not be sent unless I have comment on the first 10 lines.

    <? PHP

    include ('Mail.php');

    //$to = " [email protected] "; "

    $name = $_REQUEST ['name'];

    $email = $_REQUEST ['email'];

    $message = $_REQUEST ['name'];

    $headers = "from: $email";

    $subject = "price quote";

    $fields = array();

    $fields {'name'} = 'Name ';

    $fields {'email'} = 'Email ';

    $fields {'message'} = 'Message ';

    $recipients = ' [email protected] '; //CHANGE

    $headers ['from'] = ' [email protected] '; //CHANGE

    ["to"] = $headers ' [email protected] '; //CHANGE

    $headers ['subject'] = 'Test Message';

    $body = "test message";

    Set the SMTP settings

    $params ['host'] = "levy.dnsbox25.com";

    $params ['port'] = '25';

    $params ["auth"] = "PLAIN";

    $params ["username"] = ' [email protected] '; //CHANGE

    $params ["password"] = "xxxxxx"; CHANGE

    / Next option allows the SMTP debug and will print the SMTP Protocol

    conversation on the page, it will help only with authentication problems. */

    $params ['debug'] = 'true ';

    Create the mail object using the Mail::factory method

    $mail_object = & Mail::factory ('smtp', $params);

    Print the parameters you use for the page

    {foreach ($params as $p)

    echo "$p < br / > ';

    }

    Send the message

    $mail_object-> send ($recipients, $headers, $body);

    ? >

    It used to work well when I used

    $send = mail ($ $subject, $body, $headers);

    $send2 = mail ($from, $subject2, $autoreply, $headers2);

    But they said I can't use it anymore. I'm good with HTML and CSS, but I don't know much about php. Thanks for any help integrating one of in this new code!

    It is to be expected. When you assign a value to a variable that was already assigned, you replace the previous value. You must add. Try this

    $body = "name:". "." $name. "\r\n". "e-mail:". "."  $email. "\r\n". $message

  • I'm new to LR and did install you on a Mac desktop computer and laptop.  On the laptop, the basic function under develop simply disappeared.  I'm lost.  Help.

    Question: I'm new to LR and did install you on a Mac desktop computer and laptop.  On the laptop, the basic function under develop simply disappeared.  I'm lost.  Help.

    This is a common problem. The basic Panel is simply hidden.

    Billboards / of masking is actually a function of Lightroom, but it is intuitive--not many people know that there are - for the most newcomers are thrown when a Panel is somehow hidden.

    Right-click anywhere in the area of the Panel on the right hand side and a context menu will appear.

    Click on the basic option to re - appear the basic Panel.

  • need help to get the value using the REGEXP_REPLACE function.

    I am trying to extract the value placed between "< listitems >... < / listitems >" but I am unable to get these value using the REGEXP_REPLACE function.
    select REGEXP_REPLACE('<InputParameters></ParamSet><listitems>14545454</listitems></ParamSet></InputParameters>'
    ,'(<InputParameters>.*<listitems>)(.*)(</listitems>.*<InputParameters>)'
    ,'\2') from dual;
    required output:
     1454554
    Can someone please help me achieve this goal.

    Hello

    You forgot the / before the last InputParameters. If fix you that, your code will work.

    Here is a slightly different way:

    SELECT  REGEXP_REPLACE ( '14545454'
                     , '^.*?(.*?).*$'
                     , '\1'
                     )     AS listitems
    FROM    dual
    ;
    

    Least to type, the less likely you will have to make typos.
    If there are 2 (or more) elements of listitmes, 1 will be returned.

    From Oracle 11.1, you can also use REGEXP_SUBSTR. I have Oracle 10.2 avaialable now, so I can test the following, but I think you'd say:

    SELECT  REGEXP_SUBSTR ( '14545454'
                     , '(.*?)'
                     , 1
                     , 1
                     , NULL
                     , 1
                     )     AS listitems
    FROM    dual;
    

    When it comes with the text that is or looks to, XML, consider using XML functions.

Maybe you are looking for

  • Satellite A30 - flashing screen

    Hi all. My daughter has an old laptop Satellite A30 but its fine to its needs. The screen has been flickering for some time, but if it settles on the screen he'd stop and she could continue to work.Now, if the problem is much more serious, and someti

  • How can I re - configure the apple ID

    I just bought an Apple Watch Best Buy Open box and when I went to pair he took up with someone else's apple ID.  How do I re-set so I can pair it with my iPhone and my apple ID

  • HP Pavilion g7-2224nr Notebook: trying to Win Win 7 8, now need to return back

    Sorry if this has been raised many times before. I looked around, but couldn't find something that helped. Stupidly, I installed Win 7 on top of win 8. Everything works, except some drivers not settled. I've been looking around for Win 7 drivers, but

  • Trying to figure out a mooring - WLAN reviews

    We have six controllers among three main campuses and two remote sites. I set up a WLAN guest at our main location on two of our controllers (we have two controllers for our main campus) I would like to set up my other controllers so that a user can

  • Intel Centrino Advanced N6200 AGN wifi hangs Envy 17 whenever I try to download large files.

    I have a brand new 3D Envy17 Win7 Professional x 64.  First of all, I noticed a problem trying to download a movie on iTunes and has spent a week relocation/installation/configuration iTunes thinking that was the problem.  Then, I tried to make a tra