Sort numerically a varchar2 container field '-' and tanks

I have a Field1 varchar2 (20) that contains values such as
2-14', 3-9', '1-1-2 T'

They should be sorted in the order

' 1 1-2 T '
2-14'
3-9'

I tried to use lpad (field1, 22, '0') but he left buffers at a given fixed length for the whole area and it does not work.

There is no fixed grammar for this field and it is possible that in the future some unexpected tank can appear in the field. For example, "[1-2]" "

But the query needs to work even if the sort is not correct.

select field1,field2,field3...from table tab1, tab2...where ...
          order by field1;
Can someone please help?

Thank you.

Hello

Sorry, I don't understand the sorting rules.
It looks like
(a) the string is divided into a number of secondary channels by hyphens.
(b) sorting through secondary channels in the order, i.e. the substring n matter only if there is equality of strings 1 through n - 1.
(c) strings composed entirely of numbers preceded by secondary channels who have other characters
(d) secondary digital channels are classified as numbers, that is, '1' and '01' are the same, but comes from '1' before ' 03 "
(e) other substrings are classified as strings

Under these rules, the two identical channels ' 1 - 1 - R 'would come after the strings that start with 1-01 - 1-'.
Other than that, the following query is what you asked:

WITH  cntr     AS
(
     SELECT     LEVEL     AS n
     FROM     dual
     CONNECT BY  LEVEL <= 1 + ( SELECT  MAX ( LENGTH (txt)
                                              - LENGTH ( REPLACE ( txt
                                                    , '-'
                                          )
                                   )
                              )
                       FROM    table_x
                     )
)
,       got_sub_txt  AS
(
     SELECT  id
     ,     txt
     ,     n
     ,     REGEXP_SUBSTR ( txt
                     , '[^-]+'
                     , 1
                     , n
                     )          AS sub_txt
     FROM    table_x
     JOIN     cntr     ON  n <= 1 + LENGTH (txt) - LENGTH (REPLACE (txt, '-'))
)
,     got_sort_key     AS
(
     SELECT     got_sub_txt.*
     ,     SYS_CONNECT_BY_PATH ( CASE
                           WHEN  REGEXP_LIKE ( sub_txt
                                               , '[^0-9]'
                                         )
                           THEN  '2' || RPAD (sub_txt, 10)     -- Magic Number
                           ELSE  '1' || LPAD (sub_txt, 10, '0')     -- Magic Number
                          END
                        , '-'
                        )     AS sort_key
     FROM     got_sub_txt
     WHERE   CONNECT_BY_ISLEAF = 1
     START WITH  n     = 1
     CONNECT BY  n     = PRIOR n + 1
     AND         id     = PRIOR id
)
SELECT    id
,       txt
FROM       got_sort_key
ORDER BY  sort_key;

This requires that each substring will be (at most) 10 characters long. That's what the 'magic number' 10 in got_sort_key of the subquery. You can change this to whole m that you like.
The only limit is the number of subkeys is that they must all fit in a VARCHAR2 4000 characters, so the limit is 4000 / (m + 2) (e.g., 333 when m = 10).

For this solution, you need a unique identifier (id in the example above) for each line. You don't need to display this identifier in the SELECT clause.
If txt itself is unique, it can be used as the identifier.

Tags: Database

Similar Questions

  • Need to concatenate the put date in the form field and the numeric field

    Hello

    I have a date field and a 4-digit numeric field in my form. I want to concatenate these fields in a new field in the following format: "YYYYMMDD [4-digit numeric field]."

    For example

    Date: June 4, 2015

    Number: 1234

    Concatenated field: 201506041234

    When I try to concatenate the value of date, I get the string value is entered instead of the actual date (e.g. "4 June").

    Thank you.

    OK, the script might like:

    Get the values of field as strings

    var sDate = getField("date1").valueAsString;

    Var Nums = getField("number1").valueAsString;

    Convert string to date in a date object

    Kai var = util.scand ("mm/dd/yyyy", sDate);

    Concatenate number and the date strings

    var sDateNum = util.printd ("YYYYMMDD", letter) + nes;

  • Sort Table data with text fields (form)

    I googled and searched forms of days for a response, but were unsuccessful.

    The only wire that I found being a year old, I wanted to start a new instead of bumping an old

    Ref: http://forums.adobe.com/message/3000436

    I'm looking for a script to sort the data in a form that is based on user input.

    The shape is just a table with multiple rows and columns of 3-5 (according to the dept) it's used)

    Using the thread referenced above, I was able to get a static table to sort, but I need to have all the fields to be text fields and the users enters the data.

    The example of the other thread static:

    http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-3000436-35301/364-128/Untitled.png

    I'll use the same layout, just need to be a shape rather than static.

    If anyone can help or point me in the right direction, it would be great.

    Update #1:

    I find this page:http://cookbooks.adobe.com/post_Sorting_tables_in_dynamic_PDF-18993.html

    I'm the kind of work and it seems to be mostly what I look for, but how to deal with field empty?

    For example, the last three lines are empty (no data) the genre fails.

    Here is the code of the page, how can I change to fix the empty fields?

    ------------------------------------------------

    pass var = 0; column index

    var num = false; Is the numeric column

    var OrderAsc = true; Sort order

    function SortTable (tableRef, colIndex, isNumeric, CSA)

    {

    Try

    {

    Col = colIndex;

    NUM = isNumeric;

    OrderAsc = Asc;

    String variable that contains the data of the form as the XML string

    data var = tableRef.saveXML ('pretty');

    A XML variable contains the deserialized XML data

    xmlData var = xfa.datasets.createNode ("dataGroup", tableRef.name);

    xmlData.loadXML (data);

    Number of rows in the table

    var rowsCount = xmlData.nodes.length;

    Number of columns in the table

    passes of the var = xmlData.nodes.item (1).nodes.length;

    Two dimension table contains data of the complete table

    Master of var = new Array();

    Fill in the chart with XML data

    for (var i = 1; i < rowsCount; i ++)

    {

    Master [i-1] = new Array();

    for (var j = 0; j < passes; j ++)

    {

    Master [i-1] [j] = xmlData.nodes.item (i).nodes.item (j) .value;

    }

    }

    Sort the table 2D

    Master.sort (sortFunc);

    Re-fill the XML variable with data in table

    for (var i = 0; i < master.length; i ++)

    {

    for (var j = 0; j < master [i] .length; j ++)

    {

    xmlData.nodes.item(i+1).nodes.item (j) .value = master [i] [j];

    }

    }

    Change the data in the table and the back of the form

    var result = xmlData.saveXML ('pretty');

    tableRef.loadXML (result, 1, 1);

    XFA. Form.remerge ();

    } catch (e)

    {

    App.Alert (e)

    }

    }

    Customize the sort function to manage the 2D array and numeric columns

    function sortFunc (a, b)

    {

    var x = a [col];

    var y = b [col];

    Try

    {

    If (num)

    {

    x = parseInt (a [col]);

    y = parseInt (b [col]);

    }

    } catch (e) {}

    If (OrderAsc)

    {

    return x == y? 0: (x < y?-1: 1)

    }

    on the other

    {

    return x == y? 0: (x < y?-1: 1)

    }

    }

    Solution found!

  • We began to receive tons of spam messages that have empty "from" or "sender" field and we can't seem to get the Message filters to trigger on the empty fields.

    I am trying to create a filter that will remove messages that pass through any information in the FROM or SENDER fields.

    I tried: 'contains + [EMPTY]' and ' sender contains ++ [EMPTY] "(where [WHITE] is leave this field empty), and it does not work.

    The filter I use is like this:
    Does not contain a @.
    If this line is empty there is no symbol @, but otherwise he will have this symbol, since each email address there.
    You could do the same for the sender line.

  • Why do I see a soccer field and a German flag in my taskbar? The World Cup is over

    Since the World Cup, the screen when I open Firefox is a soccer field and a German flag, a sort of 'skin' If you want to. I want to go!

    This has happened

    Each time Firefox opened

    Is June or July

    Hi Love H.

    You have to just disable the character of the World Cup.

    Go in Tools > Modules > Themes
    Select by default
    Click on the topic of the use
    Restart Firefox.

    If you see things related to Word Cup in your status bar at the bottom of your Firefox window, or elsewhere, other modules. See disable or remove modules.

  • Align the text field and a button.

    Hi all

    I use Oracle APEX 5.0.1.

    I tried to create a search page that contain a text field and a button.

    But I can't align the text field and button, so they can have the same top position.

    Could someone please help me solve this problem?

    APEX-ARE-Search.jpg

    Thank you and best regards,

    Troy.

    Hello.

    Have you tried to add a css attribute to the button? like: style = "top: 4px;

    Concerning

  • MAX value / number of fields and PIVOT

    I run a query against what would essentially be a db (Oracle 10 g) orders. I have 4 tables that I am querrying against.
    It is an abridged version of the result set.
    CUS_ID     ORD_NUM     ACT_IND                                          PRD_ID                                   ORD_COMP_DT
    794102     496342     N - New          1752AOC03GLVVNYXA5MDNRWCNYXA0MW    4/4/2006
    794102     709153     C - Change              1752AOC03GLVVNYXA5MDNRWCNYXA0MW      4/10/2008
    794102     741641     D - Discontinue     1752AOC03GLVVNYXA5MDNRWCNYXA0MW      7/15/2008
    794102     769121     D - Discontinue     1752AOC03GLVVNYXA5MDNRWCNYXA0MW      3/3/2009
    I tried to use the MAX (ORD_COMP_DT) and MAX (ORD_NUM) without success. I always get the same 4 rows returned.
    What I'm trying to accomplish is a result that will show me only the latest information relevant to the CUS_ID (which is unique for each PRD_ID).
    SELECT max(ORD_COMP_DT) as COMP_DT,
    max(ORD_NUM) as ORD
    from table
    My result set would be like:
    CUS_ID        ORD_NUM     ACT_IND                                          PRD_ID                                        ORD_COMP_DT
    794102         769121                 D - Discontinue     1752AOC03GLVVNYXA5MDNRWCNYXA0MW         3/3/2009
    With my limited knowledge, I guess it must be a subquery in my larger query against multiple tables. I looked through the forum and tried using some examples, but always without success.

    Update*-I managed to get the result that is close to what I want just by using the MAX function on ORD_NUM and ORD_COMP_DT and Group BY. However because there are several instances in the ACT_IND column my results exceed 1 line when I include this field. If at this stage, is - can anyone suggest how I can manage this area yet again that the latest ORD_NUM and ORD_COMP_DT?


    Do not confuse the issue, but ultimately I'd like to be able to actually capture New oil fields and stop (PIVOT - I understand is not available on Oracle 10 g, which means another method) and those who, like this pivot:
    CUS_ID         NEW_ORD_NUM     DISC_ORD_NUM     PRD_ID                                                        NEW_ORD_COMP_DT     DISC_ORD_COMP_DT
    794102         496342                     769121                1752AOC03GLVVNYXA5MDNRWCNYXA0MW        4/4/2006                     3/3/2009
    I'm sorry for the post disjointed - I tried to fix my problem before actually hitting the publish button, but I'm stuck.

    Thanks for the research.

    G

    Published by: GMoney on July 12, 2012 11:24

    Published by: GMoney on July 12, 2012 11:27

    Published by: GMoney on July 12, 2012 11:29

    Hello

    GMoney says:

    ...
    create table SR (DOCUMENT_NUMBER VARCHAR(10),
              ORDER_COMPL_DT  VARCHAR(2),
              ACTIVITY_IND VARCHAR(4));
    
    INSERT INTO SR VALUES('12345',to_date('04/04/2006 09:38:08', 'dd/mm/yyyy hh24:mi:ss'),'N');
    INSERT INTO SR VALUES('23456',to_date('10/04/2008 14:21:28', 'dd/mm/yyyy hh24:mi:ss'),'C');
    INSERT INTO SR  VALUES('34567',to_date('15/07/2008 10:14:32', 'dd/mm/yyyy hh24:mi:ss'),'D');
    INSERT INTO SR  VALUES('45678',to_date('03/03/2009 14:55:55', 'dd/mm/yyyy hh24:mi:ss'),'D');
    

    Good; you use correctly TO_DATE.
    Why did you change the data type for irder_compl_dt to VARCHAR (2)?

    Do all the joints, and any other filter you may need, inside the subquery were the ROW_NUMEBR is calculated, if not sooner.
    The main request will do nothing except filter by rn (ROW_NUMBER results) and ORDER BY, if you want to sort the output.

    WITH     got_rn          AS
    (
         SELECT     ck.circuit_design_id
         ,     sr.document_number
         ,     ck.product_id
         ,     sr.activity_ind
         ,     sr.order_compl_dt
         ,     ROW_NUMBER () OVER ( PARTITION BY  ck.circuit_design_id
                                   ORDER BY          sr.document_number     -- or sr.order_compl_dt
                                       DESC
                           ) AS rn
         FROM    ck
         JOIN     src     ON     ck.circuit_design_id     = src.circuit_design_id
         JOIN     sr     ON     src.document_number     = sr.document_number
    --     WHERE     ...     -- If you need other filtering, put it here
    )
    SELECT       circuit_design_id
    ,       document_number
    ,       product_id
    ,       activity_ind
    ,       order_compl_dt
    FROM       got_rn
    WHERE       rn     = 1
    ORDER BY  circuit_design_id     -- if wanted
    ;
    

    If the largest number of document is always order_compl_dts later, then it doesn't matter which of these columns that you use in the ORDER BY clause analytical. Whatever it is, remember to specify DESCending order.

  • Format text in bold in the field and to put text on a new line - help!

    I'm lost.  I found the rich text formatting item click.  But after that, I don't know what to do next.  I want "BOLD" of some characters and I want some answers on separate lines, as I asked earlier.  As for spans and controls - I have no programming experience.  I just used that George gave to me.  It worked fine, but I just need that bold text in one part of the text to print field and I need some items to be on separate lines.  But I don't know where to put the information you say on the spans and I do not know the use of bold text or script start text on a new line.  I'm into the calculation of the area of text box?  Sorry to be so lame, but I'm no good in programming skills.  Help!

    For example, here's the script.  In aISOreq {[0], if I want to "BOLD" "Check #1 patter: ', where should I put the span and what script should I use to say to"BOLD"it.}   Could you give me an example, please.  Also, if I want to put 'a. drugs weekend on one line?' and ' b. activities the weekend? Types of activities? Supervision? With whom? "on the next line, where do I put the span and what script should I use to put on separate lines?  Could you give me an example for this too, please.  I have used literally just scripts George gave me and they work great - but it's all I know how to do.  Thank you.

    (function () {}

    Set up a table to hold the various paragraphs of the text

    var aISOfreq = [];

    Fill the table with text of paragraph

    aISOfreq [0] = ' model #1: reducing several isolations on Mon & Tue to Fri. "  Model # 1 verification: a. drug weekend?  b. activities weekend? Types of activities? Supervision? With whom? « ;

    aISOfreq [1] = ' model #2: isolation of multiple some days. "  Note the days.  The #2 model checking: a. Different plan these days there? Another adult? Block-schedule? Need to w/same adult consistent schedule.  b. adaptations/changes occur? More group c. individual training? Does the student need warm-up exercises or a specific job?  Student needs a specific lesson routine? c. activities of the previous night?  Need of calming activities before bedtime?  Need to bed earlier? Need additional evening structure? « ;

    aISOfreq [2] = ' model #3: Isolations are grouped intermittently. "  Interval of note.  The #3 model checking: a. cyclical behaviour?  Review the assessment.  Need reference mental health intervention of medication or treatment?  b. drugs: supervision? Self medication? Taking constantly? Need medication collate doctor?  Share concerns with the doctor?  c. history of the abuse of legal or illegal drugs?  Cyclic model to share with the doctor.  On probation?  Share concerns with PO? « ;

    aISOfreq [3] = "models #1 & #2: multiple Isolations on Mondays & Tuesdays to Friday AND several Isolations some days."  Note the days.  Model #1 verification: a. drug weekend?  b. activities weekend? Types of activities? Supervision? With whom?  The #2 model checking: a. Different schedule some days? Another adult? Block-schedule? Have a consistent schedule with same adult.  b. adaptations/changes that occur? More group c. individual training? Need of specific work or warm-up exercises?  Need a specific lesson routine?  c. activities of the previous night? Need of calming activities before bedtime? Need to bed earlier? Additional needs night structure? ";

    aISOfreq [4] = "models #1 & #3: multiple Isolations on Mondays & Tuesdays decreasing Friday AND insulation together intermittently."  Note intervals.  Model #1 verification: a. drug weekend?  b. activities weekend? Types of activities?  Supervision? With whom?   The #3 model checking: a. cyclical behaviour?  Review the assessment.  Need reference mental health intervention of medication or treatment?  b. supervision of drugs? Self medication? Taking constantly? Must check with the doctor med?  Share concerns with the doctor?  c. history of the abuse of legal or illegal drugs?  Cyclic model to share with the doctor.  On probation?  Part of the concerns of w/PO? »

    aISOfreq [5] = ' patterns #2 and #3: several isolates on a day specific AND insulation together intermittently. "  Note day & intervals.  The #2 model checking: a. different planning? Another adult? Block-schedule? Need to w/same adult consistent schedule.  b. adaptations/changes that occur? More group c. individual training? Need exercises to warm-up or a specific job?  Need a specific lesson routine? c. activities of the previous night?  Need of calming activities before bedtime?  Need to bed earlier? Additional needs night structure?  The #3 model checking: a. cyclical behaviour? Review the assessment.  Need reference mental health intervention of medication or treatment?  b. supervision of drugs? Self medication? Taking constantly? Need medication collate doctor?  Share concerns with the doctor?  c. history of the abuse of legal or illegal drugs?  Cyclic model to share with the doctor.  On probation?  Share concern w/PO? « ;

    aISOfreq [6] = ' bosses, #1, #2 and #3: several isolations on Mondays & Tuesdays decreasing through Friday, several isolates some days AND insulation together intermittently. "  Note the days and intervals.  Model #1 verification: a. drug weekend?  b. activities weekend? Types of activities? Supervision? With whom?   The #2 model checking: a. different planning? Adult?  Block-schedule?  Need to w/same adult consistent schedule.  b. adaptations/changes that occur? More group c. individual training? Need exercises to warm-up or a specific job?  Need a specific lesson routine? c. activities of the previous night?  Need of calming activities before bedtime?  Need to bed earlier? Additional needs night structure?  The #3 model checking: a. cyclical behaviour? Review the assessment.  Need reference mental health intervention of medication or treatment?  b. supervision of drugs? Self medication? Taking constantly? Need medication collate doctor?  Share concerns with the doctor?  h. history of the abuse of legal or illegal drugs?  Cyclic model to share with the doctor.  On probation?  Share concern w/PO? « ;

    aISOfreq [7] = "without cause."

    Get the selected item, which is the value of exports of the selected drop-down list box item

    var point = getField("ISO_Frequency_Pattern").value;

    Display the text corresponding to the selected item in the text field

    Event.Value is aISOfreq [point];.

    })();

    Look at the richValue of the Field object property reference. It contains a few examples of how it should be done. Read also the Span object reference.

  • Creating a PDF file that has editable fields and replaceable images

    I tried to understand how I can create a PDF file that is replaceable photos and editable text. I work for a company in which all computers have only Adobe Reader as a means to view or edit a PDF file. So far, I managed to create a file that contains fields of text editable with a custom look and feel, which is great! However, the next step was to create "fields" that can be filled by a picture. Is there a way to create with LiveCycle or any other prorgram also replaceable images.

    My goal is simple: create a PDF file that has editable textfields and replaceable images. What should be done in Adobe Reader.

    I use Adobe Acrobat X Pro to create this file, and I wonder if Live Cycle can help me with this problem, or if this is even possible at first. Thanks in advance.

    Your goal is very simple with the LCD. Only use an Image field (important no Image) of the object library.

    Any time you can click on it and select a new image.

    Hope this information is useful?

    Kind regards Mandy

    PS: Ah I opened this tab and there is no answer right now

  • When a subclass must have its own fields and when to use its super

    When a subclass must have its own fields and when to use fields of its superclass?


    Hi, thanks for reading this post!

    I would use a specific example to my question.

    public class BankAccount {
         private double accountBalance;
         
         public double getBalance() {
              return this.accountBalance;
         }
    }
    
    public class SavingsAccount extends BankAccount {
         private double accountBalance;
         
         public double getBalance() {
              return this.accountBalance;
         }
    }
    In the example of bank account, account Bank both SavingsAccount will have a getBalance() method. As a result, they
    both need an account balance field. My question is as getBalance() for both classes will occur exactly the same
    operation, when I should omit declaring the getBalance() method and the accountBalance in the subclass field, and
    When should I include them?

    My own thought is when we never instantiate a superclass object (for example, an abstract class), then we place
    common fields in the superclass abstract and subclasses have access to these areas via getter/Setter protected
    access the fields of the superclass. This is the principle of reuse.

    But if you do not need to instantiate a superclass and the superclass needs to maintain its own fields, then
    I would need to replicate the getBalance() accountBalance and field method in the subclass.

    Is my thinking correct or incorrect?

    Thank you in advance for your help!

    Eric

    Published by: er * August 22, 2011 20:19

    ER * wrote:
    If SavingsAccount inherits BankAccount.getBalance ()... getBalance () would return accountBalance bank account. This isn't the right result we want.

    In fact, I think that this is precisely what you want.

    We want getBalance() accountBalance bank account back when we use a BankAccount object and SavingsAccount accountBalance when we use a SavingsAccount object.

    I seriously doubt that. I think you are confused a bank account with a customer, who may have multiple accounts.

    In all the systems I've ever seen, a SavingsAccount IS - A BankAccount - that is to say, it is a subtype of real. Now, it can contain many other areas ('interest'?), that a normal account would not be 'balance' is not one of them.

    Winston

  • Copy fields and then jump on it later

    Hello

    I want to apologize first if I'm in the wrong forum.

    I have created a form to an existing word document. I know on the copy of fields and have the data entered once and then the information is already filled in on the fields copied in the rest of the form. However when I test the form and tab through, Adobe me tabs always duplicate fields that already have data. I was wondering if there is a simple way to have the duplicate fields automatically ignored when tabbing. I have Adobe 9 and not any what Add-ons or additional programs (IE Livecycle).

    Thank you for your time

    Paul

    Sorry, if this isn't a numeric field, then you're better of using the third

    option, the custom script, with this code:

    Event.Value = getField("TITLE_DOC_REV").valueAsString;

  • How can I add session variables for the subject field and the body of the e-mail Message?

    How can I add session variables for the subject field and the body of the e-mail Message? Tried several combinations, but do not seem to correct the syntax.

    This is the code I have. I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];
    $subject = '$firstname $lastname, your registration details ';
    $from = "from: [email protected]"; "
    $msg = "Dear $title $firstname $lastname\r\n\nThank for the registration for the design of your dream Home.\r\nWe have received this following details details of you-\r\n\nClient-\r\n\nOccupation: $occupation \r\nPhone No.: $phone \r\nE-mail: $email\r\n\nPresent $ location: \r\n location\r\n\nPresent address: \r\n$ address\r\n\n\nFollowing are specified by you - design requirements \r\n\nBasic Features\r\n\nNo." floors: $floors\r\nNo. of bedrooms: bedrooms\r\nNo of $. of bathrooms: $bathrooms\r\nFloor region: $sqft\r\n\nFurther Suggestions: $ Plan\r\n\nSplit one further\r\n\n\nType floor: $splitfloor\r\n-remarks: $splitfloorremarks\r\nOpen floor: $openfloor\r\n-remarks: $openfloorremarks\r\n\n\nList of the rooms to be Included\r\n\nFoyer: $foyer\r\n-remarks: $foyerremarks\r\nDrawing: $drawing\r\n-remarks: $ alive drawingremarks\r\nFormal: $formalliving\r\n-comments : $ alive formallivingremarks\r\nFamily: $familyliving\r\n-remarks: $familylivingremarks\r\nHome Office: $homeoffice\r\n-remarks: $homeofficeremarks\r\nDining: $dining\r\n-remarks: $diningremarks\r\nMaster room: $master\r\n-remarks: $masterremarks\r\nMaster bathroom: $masterbath\r\n-remarks: $masterbathremarks\r\nMaster Dressing: $masterdress\r\n-remarks: $masterdressremarks\r\nBedroom: $bed\r\n-remarks: $bedremarks\r\nBathroom: $bath\r\n-remarks: $bathremarks\r\nDress: $dress\r\n-comments : $dressremarks\r\nStudy: $study\r\n-remarks: $studyremarks\r\nLibrary: $library\r\n-remarks: $libraryremarks\r\nPowder room: $powder\r\n-remarks: $powderremarks\r\nPrayer room: $prayer\r\n-remarks: $prayerremarks\r\nKitchen: $kitchen\r\n-remarks: $kitchenremarks\r\nPantry: $pantry\r\n-remarks: $pantryremarks\r\nUtility/area of work: $utility\r\n-remarks: $utilityremarks\r\nBalcony: $balcony\r\n-remarks: $balconyremarks\r\nStore: $store\r\n-remarks: $storeremarks\r\nLaundry : $laundry\r\n-remarks: $laundryremarks\r\nVeranda: $veranda\r\n-remarks: $verandaremarks\r\nCar porch: $carporch\r\n-remarks: $carporchremarks\r\nGarage: $garage\r\n-remarks: Theater garageremarks\r\nHome $: $theater\r\n-remarks: room of $theaterremarks\r\nMaid: $maid\r\n-remarks: $maidremarks\r\n\nOther general remarks: $general\r\n\nPlease note that the fields have been left blank in your form will be considered undecided details and used in discretion.\r\nIf of the architect , it better to add more later, design requirements please feel free to reply to this email with the details. « ;
    $fla = mail ($to, $subject, $msg, $from);

    Thanks in advance!

    askintrades wrote:

    How can I add session variables for the subject field and the body of the e-mail Message?

    What you want to do? Given the nature of your question, it seems that you probably don't know what a session variable is used. The PHP manual describes the purpose of sessions here: http://docs.php.net/manual/en/intro.session.php.

    I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];

    Why do you need to change the form variables in session variables? They are already stored in session variables, or they come directly from the form?

    The $to part is not supported. When you pass $to to the mail() function, it should contain only an e-mail address, not a string that begins with "to:

  • Import excel 2003 and 2007 files that contains numbers and text in LabVIEW

    Hello

    I try to import *.xlsx files (2007) containing numbers and text in LabVIEW and som *.xls (2003), but I can't make it work. First column with the text and the second with numbers.

    Can someone help me with a small example? Is there an easy way?

    FYI

    I have access to all packages and addons for LabVIEW through my work (University)

    Best regards

    Simon

    There is an example usage of the reporting tool.

    http://decibel.NI.com/content/docs/doc-4965

    It should give you a starting point.

    I hope this helps.

  • If I have several fields and if I select a field in a drop-down list it will fill the other fields

    If I have several fields and if I select a field in a drop box is it possible to auto poplulate the other fields.

    Thank you

    Brain

    Please post your question on InfoPath 2010 at the following link

    http://social.technet.Microsoft.com/forums/en-us/sharepoint2010customization/thread/e70c23a9-1b68-4EF9-9FB4-923997043e56/

  • I installed a sniper art called win game it shows yellow field and gives Pure virtual function error

    I installed a sniper art called win game it shows yellow field and gives Pure virtual function error.

    Hello

    · What is the full error message that you receive with error code if any?

    I suggest you to refer to the manual of game for more information contact the Publisher of the game for support. There may be a specific game update that solves this problem because it seems to be linked to a C++ runtime error in the game.

Maybe you are looking for