Select list need to pass a value to collect information based on a value in another page

I have a page product - detail.php which is then sent to a cart.php I have a number of tables that are all United and that you show in the following statement. the results are displayed on the detail page

$var1_rsProduct = "-1";

If (isset($_GET['productID'])) {}

$var1_rsProduct = $_GET ['productID'];

}

@mysql_select_db ($database_beau, $beau);

$query_rsProduct = sprintf ("SELECT * FROM beauAW13_SizeList WHERE beauAW13_products.catID = beauAW13_Cat.catID AND beauAW13_products, beauAW13_Cat, beauAW13_products, beauAW13_Stock.") ProductID = beauAW13_Stock.ProductID AND beauAW13_Stock.SizeID = beauAW13_SizeList.SizeID AND beauAW13_products. ProductID = %s AND beauAW13_Stock.Stock! = 0 ", GetSQLValueString ($var1_rsProduct,"int"));

$rsProduct = mysql_query ($query_rsProduct, $beau) or die (mysql_error ());

$row_rsProduct = mysql_fetch_assoc ($rsProduct);

$totalRows_rsProduct = mysql_num_rows ($rsProduct);

I have a selection list that must demonstrate that the sizes.this is shown below

< select name = "select" id = "sΘlectionner" >

<? PHP

{}

? >

< option value = "<?" PHP echo $row_rsProduct ["StockID'];? > "> <?" PHP echo $row_rsProduct ["Size"]? > < / option >

<? PHP

} While ($row_rsProduct = mysql_fetch_assoc ($rsProduct));

$rows = mysql_num_rows ($rsProduct);

If ($rows > 0) {}

mysql_data_seek ($rsProduct, 0);

$row_rsProduct = mysql_fetch_assoc ($rsProduct);

}

? >

< / select >

It currently passes the value of <? PHP echo $row_rsProduct ["StockID'];? >

which is ok, as it is a so on single number completely the basket page, I need to get all this stockID size information

Here's an example:-

I used a stockID of 355

on the cart.php the stockID resonates on as 355 and size echoed the as 355, which is what I expected.

the stock table looks like this

StockID | ProductID. SizeID |  Stock

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

355.    582.   14.    5

so

ProductID is jumper blue

Stock ID is unique number

SizeID = 14 = once size

Stock = 5 in stock

so I need in the basket tell

355 = 14 = unique size

I can then echo the correct size in single size and not of 355

I really hope someone can help

Thank you

Thanks for everyone's advice. I managed to make it work

I sent the stockID; go to the basket page, made a new variable based on the stockID made a request and got all the information based on the new variable stockID

<>

$newStockID = $XCart_StockID = ${$XCName} ["content"] [0] [$XCart__i];

@mysql_select_db ($database_beau, $beau);

$query_rsSize = "SELECT * FROM beauAW13_SizeList, beauAW13_Stock WHERE beauAW13_Stock.SizeID = beauAW13_SizeList.SizeID AND beauAW13_Stock.StockID = '$newStockID" ";

$rsSize = mysql_query ($query_rsSize, $beau) or die (mysql_error ());

$row_rsSize = mysql_fetch_assoc ($rsSize);

$totalRows_rsSize = mysql_num_rows ($rsSize);

?>

Select the list

Tags: Dreamweaver

Similar Questions

  • Passing the value from one page to the other page

    Hi gurus,

    I need to pass the value from one page to the other page and two pages use different AMs.
    In the first page I have sellers results region table where the $vendor_name column is a hyperlink that navigates to the page Vendor_Sites. Now after accessing the second page, I want to excute the VendorSitesVO in PR of CO based on the value passed to VendorsVO (vendor_id) of first page.

    can someone help me on this?

    Thank you
    Vincent.

    Published by: user4933347 on December 4, 2009 12:19 AM

    You can set parameters of Pagecontext and transmit values through them. These values can be passed between pages, even if the AMs are different.

    Try:
    pageContext.putParameter ("Parameter1", value1);
    pagecontext.setForwardURL (second page)

    Concerning
    Sumit

  • JavaScript: to pass values to another page

    Hi all

    I HAV an interactive report. If I clik on a particular line, who has the rank of values must be sent to another page (via javascript)

    I found this forum https://forums.oracle.com/thread/2467579 in which they hav used to send mail.

    but I wanted to pass those values to another page throug javascript bz, I HAV installed a nd wrking her under right clik plugin.

    my javascript function is,

    function func (action, el, pos)

    {

    Window.Location ="http://apex.oracle.com/pls/apex/f?p=71510:2: & SESSION.: 2:P2_X, P2_X2:'+ $(el).children('td[headers="EMPNO"]').text () + ',' + $(el).children('td[headers="ENAME"]').text ()";

    }

    Here I HAV it redirected to page 2 and on the 2nd page I HAV 2 elements used to get these values.

    $(el).children('td[headers="EMPNO"]').text () + -> is to fetch the empno of that particular line and the same for the name.

    But if I click on the right button clik, no action that happens...

    but his work well, if I use the function as,

    function func (action, el, pos)

    {

    Window.Location ="http://apex.oracle.com/pls/apex/f?p=71510:2: & SESSION. » ;

    }

    so somewhere will not passing the values in the URL, I guess...

    and I HAV used al d above things in

    http://Apex.Oracle.com/pls/Apex/f?p=71510:1 (username: test / paswrd: pex14gm)

    pls help me...

    Thanks in advance

    Try like this.

    function func (action, el, pos) {}

    var empNum = $(el).children('td[headers="EMPNO"]').text ();

    eName var = $(el).children('td[headers="ENAME"]').text ();

    Window.Location = "http://apex.oracle.com/pls/apex/f?p=71510:2: & SESSION.: 2:P2_X, P2_X2:" + empNum + ','+ eName; "

    }

    It looks simple and neat.

    If you still get no view me details of the workspace.

  • How to make a multiple numeric value to another page

    Dear Experts,

    Apex 4.1

    Oracle 11g

    I would like to pass multiple numeric value to another page, as below:

    P1_ID = (11,22,33) POINT Page1 depend on what users chose

    P2 SQL: SELECT * FROM TABLE WHERE ID IN (11,22,33), ID is numeric fields.

    but the PAGE 2 to show the error invalid number, how to fix, please help me.

    Thanks and greetings

    Yong Huang wrote:

    Dear Experts,

    Apex 4.1

    Oracle 11g

    I would like to pass multiple numeric value to another page, as below:

    P1_ID = (11,22,33) POINT Page1 depend on what users chose

    P2 SQL: SELECT * FROM TABLE WHERE ID IN (11,22,33), ID is numeric fields.

    but the PAGE 2 to show the error invalid number, how to fix, please help me.

    This is the classic problem 'variable IN the list' (I have no idea why this misunderstanding is so widespread. Always seemed obvious to me that it doesn't). In

    select * from table where columnvalue in (7788, 7839, 7876)
    

    (7788, 7839, 7876)is a list of expressions and the predicate is evaluated as a membership condition.

    In

    select * from table where columnvalue in :P1_X
    

    :P1_Xis a scalar string, unable to contain multiple values.

    In a report of type APEX, a source report of the body of the PL/SQL function returning a SQL query with lexical substitution can be used to produce a "variable list:

    return 'select * from table where columnvalue in (' || :P1_X || ')';
    

    where P1_X contains less than 1000 values, has been disinfected to code SQL injectionand string values are properly cited.

    Some people suggest the following approach, that will work also in interactive APEX reports:

    select * from table where instr(':' || :P1_X || ':', ':' || columnvalue || ':') > 0
    

    However, it is underperforming because it eliminates the possibility of using the index optimizer or the size of the partition in the execution plan.

    See various elements in the list to ask Tom and imitating the channel to the table using sql features for effective solutions.

  • Cannot access textfield value in another page

    Hello, I thought it would be simple and straightforward, but I hit a wall.

    I can't access the values from another page in a script.

    I'm trying to set a value of a text field to the value of a text field which is in another page.

    I have the click event (just to test):

    eApp.ENB - 7-07 - CAGAIN_Page_5.a3z_data_AdditionalInfo::click - (JavaScript, client)

    this.rawValue = eApp.ENB - 7-07 - CAGAIN_Page_4.AccountNumber.rawValue;

    He does not get the value.

    But if I copy create a field on the same page (page 5 here) with the same information, I can access

    with this.parent.AccountNumber.rawValue;

    I can make it work, by copying the textfields on the page and in hiding, then using their value.

    but it seems dirty and useless.

    I just want to be able to access the fields on another page, I thought it would be as easy as form.page4.accessthisvalue

    Any help is VERY appreciated, been banging my head for a moment loong.

    Hello

    It should not be a problem doing this, you can reference a field anywhere on the form.  You get script errors?  My first guess would be to rename the ENB-7-07-CAGAIN_Page_4 field so that it doesn't have the dash inside character, he might try to subtract 7 variable he thinks is called BNB.

    Concerning

    Bruce

  • By the way Select list value to another page via report link

    Hello

    I have a page 1001 with an item from the selection list (SLI), a button (BTN) and a report (EPR).

    After selecting a value of the element of selection it s possible to click on the button.

    After clicking the report button will display the data. Report structure: ID, COL1, COL2, COL3, COD values in COL1 is the links to the page 1011.

    I managed to pass the value of a column in the report, but how to pass the value of SLI this link?

    I tried: SLI, SLI, #SLI # and & SLI... but nothing has worked.

    You have an idea?

    1013248 wrote:

    Please update your forum profile with a real handle instead of '1013248 '.

    I have a page 1001 with an item from the selection list (SLI), a button (BTN) and a report (EPR).

    After selecting a value of the element of selection it s possible to click on the button.

    After clicking the report button will display the data. Report structure: ID, COL1, COL2, COL3, COD values in COL1 is the links to the page 1011.

    I managed to pass the value of a column in the report, but how to pass the value of SLI this link?

    I tried: SLI, SLI, #SLI # and & SLI... but nothing has worked.

    You have an idea?

    Use the exact static text substitution method to reference the value of the element. This requires an end point ('.) ») :

    &SLI.
    
  • Select the line of the classic report to pass the value to another classic report on the same page

    Hello

    First a few details about the environment - I use the image of the last download oracle VM developer days to oracle.com. This includes DB version 12.1.0.2 and version 4.2.5.00.08 Apex. For the question although I don't know the specifics of the versions that are relevant.

    What I want to do an apex page which includes an analytical section at the top, followed by a section of retail slot - a line is selected / highlighted at the top which causes the relevant lines in this summary line is displayed. Its screen basically a master-detail - however the source of these two sets of data is just a query - is not a table.

    The query at the top of the page is something like

    Select * summary

    and the section below is

    Select * from details where id = (the value of the id clicked in the summary above)

    This feels like it should be really easy (and indeed, it is for the tables through the apex of master-detail Wizard) - but I can't understand when the two sets of data are the result of queries.

    I can't seem to make reference to the elements of the page when it comes to a report and I think that I might need to go down a kind of dynamic route of actions and jquery, but I don't get very far very fast. I found some notes that seem similar, but nothing which does exactly what I want. The function APEX_APPLICATION to browse a table also doesn't seem to be possible for the output report that I could see (tags are not there) - what is relevant for the forms?

    I hope that I have explained that quite simply.

    Can anyone help?

    See you soon,.

    Rich

    You link column can be just a null value in the sql code, if you want. Change the column and head down to the link attributes.

    Text link: "Click me" (source of sql using #MY_COL columns or #)

    Target: URL

    URL: javascript: $s ('P1_ITEM', #ID);

    Then have onChange dynamic action on P1_ITEM which updates the State. Do not forget to present the value of session state (either property right under the sql or pl/sql prior to update action report). The database needs to know the value of browser before running the query.

  • Select list failed at the first value

    APEX Version: 4.1.1.00.23

    Oracle database: 11g


    Question: The application updates the value selected in the list of selection (O/N) to the database, but at the front end, the selection list is set by default to display only the first value in the list. I think this is the data type of the field in the table attached to this select list is TANK (2). And change to VARCHAR2 (2), it worked fine. Now whichever option I choose in the selection list is updated and displayed on the front as well.


    I do not understand why is this to mess with (2) TANK. Someone at - it explain it please, I'd appreciate it really.


    Thank you

    Chrystelle

    never use CHAR() in your tables.

    TANK always touch your strings to the exact same length.

    In your case, you compare the value to the value of the list of the 'Y' table 'Y '.

    declare

    a tank (2): = 'Y ';

    b varchar2 (2): = 'Y ';

    Start

    dbms_output.put_line ('element A as a sign of ' | length (a)); -This will ALWAYS have a length of 2

    dbms_output.put_line ('Variable A as a sign of ' | length (b));

    end;

  • How to change the value from another page

    I'm filtering province in my application based on a province selected in the home page (P16), however the user can submit a form that has a province that and after that, all the content must be filtered according to the selected province 'new '. So I'm in the P7 and after submitting the form, I would need to change the P16_PROVINCE - which belong to another page (P16).

    but do not know how,
    Any help?

    Mehrdad says:
    Thanks, VC, but I need to have a trigger to change the P16_PROVINCE after submitting the form, so that one must be changed according to what the user does on a form...
    After he submit the form, I have my game P7_PROVINCE, which is fine, but AFTER the selection, I need to change the P16_PROVINCE (which is used as a global variable to filter my records...)

    Add a plsql page 7 page process and submit the game it runs - as below

    //assign the value of P7_PROVINCE into P16_PROVINCE
    :P16_PROVINCE := :P7_PROVINCE;
    

    See http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/concept_ses_val.htm#HTMDB03012

  • open and pass the value to the page 2 page 1 by region button

    Nice day

    I created 2 pages. I created a text element named p_employeeid on page 1 and a region with action button button redirecting to page 2. When I click on the button I can open page 2 but I can't filter records that only deals with p_employeeid. my source for the 2 page is select * from test_tbl where employeeid =: p_employeeid.

    Help would be really appreciated. Thank you.

    LUN

    example: apex.oracle.com

    workspace: nav
    username: Lun
    password: abc123

    example of application

    Page 1 = page 15
    page 2 = page 21

    on page 15, enter the value and click OK.

  • Passing two values to another flash animation

    I have an animation flash with two integer inputs, I want them both another flash animation

    This example http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16243 & sliceId = 2 #lcas2

    outbound moive code:
    Create a new instance of the LocalConnection to send
    calls to a LocalConnection instance in another movie
    var outgoing_lc:LocalConnection = new LocalConnection();

    event handler when the user clicks the Send button
    send_btn.onRelease = function (Void): Void {}

    Send the methodToExecute method in another movie
    LocalConnection to listen to "lc_example".
    outgoing_lc. Send ("lc_example", "methodToExecute", biomarker_txt.text);

    }


    new code of the animation:

    Create a new instance of the LocalConnection to listen
    for calls from an instance of LocalConnection to another movie
    var incoming_lc:LocalConnection = new LocalConnection();

    create a local connection to listen for a connection
    with the name "lc_example".
    incoming_lc. Connect ("lc_example");

    Define a method that is called when a message
    is sent from an instance of LocalConnection to another movie
    incoming_lc.methodToExecute = {function(param:String):Void}
    biomarker_txt. Text = param;


    }

    Never mind, I changed the string passed to get two values

    incoming_lc.methodToExecute = {function(param:String,param1:String):Void}
    biomarker_txt. Text = param;
    background_txt. Text = param1;

    }

  • Passing the value from one page to the other

    Hello

    I'm trying to display a page popup with an IR as below.

    1. There is a field next to a button.

    2 at the click of the button I want to get an Id and the value of a text field for step 1 on page popup and use them as a filter condition.

    3. I wrote a dynamic action that has the consequence of the "real" actions

    "a. the with action run PL/SQL code", which affects the value of the url a hidden point as below

    : P111_SHOWLOCATION_URL: = APEX_UTIL. PREPARE_URL ('f? p = & APP_ID.:112: & SESSION.: P112_PICKLISTID, P112_QUANTITY: & P111_PICKLISTID, & P111_QUANTITY.');

    "b. action run Javascript code" that displays an alert for one blank on the other shows the popup

    If {(apex.item("P111_QUANTITY").isEmpty ())}

    Alert ("Please enter the quantity to show locations.");

    }

    else {}

    popUp2 ($v ('P111_SHOWLOCATION_URL'), 700,300,0, 0);

    }

    When I change the value of the field in step 1 and press the button. There are only the old value not the new value. What's wrong with this code?

    Apex 4.2 | Windows | CROME browser

    Concerning

    Sanjaya

    Sanjaya Kumar Pradhan wrote:

    Yes, I mentioned as below in the Articles Page to submit

    P11198_PICKLISTID, P11198_QUANTITY

    : P111_SHOWLOCATION_URL: = APEX_UTIL. PREPARE_URL('f?p=&APP_ID.:112:&session.:::P112_PICKLISTID,P112_QUANTITY:&P111_PICKLISTID.,&P111_QUANTITY.');

    Why are the names of different elements?

    The new P111_SHOWLOCATION_URL value is specified to be returned in the Items property of the Page to return?

  • Passing values to another page

    Hi all

    I created a search page and a page update.
    In the results of advanced table Variable name is a link and set the Destination URI of property as

    {& varId={@VariableId} & retainAM = Y'

    Now when I click on the link to the name of the Variable to a single row in the results table, it navigates to the Update Page but displays all rows in the table of results.

    How to get a data row on the next Page?

    I tried the exploration to the exercise of the deatisl downwards, but still not solved.

    Thank you
    SK

    Hi Patricia

    Went through your page. The error was that unique selection of the Update Page results Table was the link with XXLCVariablesVO while rest all columns of the table were attached with XXLCUpdVariablesVO.I have created selected under this VO and attached to single selection. This solves the problem.

    I hope that helps!

    Thank you
    AJ

  • Fill a field from the value on another page

    Hi all

    I do not have a form, I'm, and I all the other scripts I have written about this work except one. There is a field of calculation based on its value, it checks the box on a page depending on the range. This calculated is read-only. I wrote the following code and put on the output event, but it does not work. Please can someone help me with why it isn't workiong.

    if ((form1. Page5.raterec1.RawValue> =1)& &(form1. Page5.raterec1.RawValue<2)) { }

    rrun1.rawValue==1;

    }

    if ((form1. Page5.raterec1.RawValue> =2)& &(form1. Page5.raterec1.RawValue<5)) { }

    rrsuccess1.rawValue==1;

    }

    if ((form1. Page5.raterec1.RawValue> =5)& &(form1. Page5.raterec1.RawValue< =6)) { }

    rrout1.rawValue==1;

    }

    Thank you

    v/r

    LucPian

    Hello

    I think that we are approaching:

    The user selects dropdown > This sets the value of raterec > script in the menu drop-down looks at the value of raterec and then sets the values for the checkboxes.

    I think what is happening is that the script sets the value of the correct raterec. BUT continues with the script of box BEFORE rawValue of raterec is set to the new value.

    So I share the script.

    Have the script in the box calculate event resembling the rawValue of raterec (see previous post). The rawValue of raterec changes, the script in the boxes is automatically activated.

    Then the script from the drop-down list changes just the rawValue of raterec.

    Box script looks like to > raterec.rawValue

    ^

    ^

    list dropdown script games ^

    (diagram of garbage)

    Niall

    Ensure the dynamics

  • Disable the number of items based on the values of another page/table

    Hi people,

    I have a form with 15 fields such as:

    Form1

    id_plan = 1

    level 1 = 2

    level 2 = 2

    level 3 = null

    level 4 = null

    level 5 = null

    level 6 = null

    and so on...

    Later, in another form that I have:

    Form2

    ID

    id_plan (from 'form1')

    account: 10.01 (based on the number of decimal places defined on the level of 'form1')

    So, I need to disable page Form1 items if I had some values of Form2. But only the levels where the account is registered. In the example above, only level 3, level 4, level 5, level 6 and so on would be activated.

    Any suggestion?

    I could put a read only condition for any page in question, is it good? or there is another suggestion?

    Thank you

    bsalvador

    Hi people,

    To resolve my issue, I used the read only option. I chose the body of the PL/SQL function returning a Boolean and put

    Start

    If (CST_RETURN_LEVEL(:P7_ID_PAR_PLANO_GER) > = 2) then

    Returns true;

    end if;

    end;

    where CST_RETURN_LEVEL is a function that returns the last filled level. If the point of the page is at level 2, I test, if CST_RETURN_LEVEL(:P7_ID_PAR_PLANO_GER) > = 2 then I returned true for read only and so on for other page elements.

    Thank you

    bsalvador

Maybe you are looking for