export variables created in a function

Hey all,.

This isn't strictly a matter of powercli, but I hope someone can provide an overview of this.

I'm building quite stocky scripts to do things and use the functions where I can, as you do

problem is all the variables I create/update during execution of the function are not available outside the service PS 1, nobody knows how to do this?

Consider code like this:

function blah

{

Write-Host "Yes do stuff."

$var = 1 + 1

}

$var is available only inside the function... I guess by design, but blocks of code, I'm building need to be able to spit out a $var - if I'm missing a fundamental part of the functions?

I hope that someone can push me in the right direction - thanks in advance for the help!

Kind regards

David

You can leave the function of the return variable in your hand like this

function blah
{
Write-Host "yea do some stuff"
$var = 1 + 1
$var
}

$mainvar = blah

Tags: VMware

Similar Questions

  • How to stop the menu showing "export pdf, create pdf, edit pdf, comment" etc

    How to stop the menu showing "export pdf, create pdf, edit pdf, comment" etc. which always appear on the right side of the screen every time I open a pdf file?  We do not pay for any of these functions and may not use it.  The menu takes a good amount of screen and is quite annoying to have to hide whenever I open a pdf file.

    Hi tonyc34311488,

    You can disable the tool of the right pane in the latest version of Adobe Acrobat Reader DC, please refer to this note of release hide the tools Panel in Acrobat and Acrobat Reader DC at all times.

    Kind regards

    Nicos

  • How to create a sentry function


    Hi all

    I want to build a custom authentication scheme that combines a custom authentication and SSO functionality.

    1. If the REMOTE_USER Variable HTTP header is set, this user must be a valid user. (Single Sign On feature)

    2. If the HTTP header Variable is not set, the LOGIN Page should appear. (local user Administration)

    3. the combination user/passowrd of the login page must be validated by my own authentication

    I think I need to create a sentry function, which is a combination of the Sentinel-functions that are used in the projects 'tailor-made' and 'HTTP header Variable.

    I tried to find an implementation of these functions in the diagram APEX_040200 database, but without success.

    @APEX-team: can you provide the implementation of these functions-Sentinel or at least documentation.

    @all: is there anyone who have implemented a similar authentication model.

    Thank you

    Richard

    Hi Richard,

    a sentry function sets whether the application should be allowed to deal with, because the session is ok. Since the 4.1, we have a function additional Invalid session which runs if the Sentinel returns false, before redirecting to the login page. A callback function can be used to continue the treatment when the login page is external. It runs when the external login is successful and redirects to the APEX. Authentication is used in combination with internal login pages to verify that the credentials of the user (username / password) are ok. If it returns true, the session is updated with the username. Otherwise, the login page must present again, with an error message. The poster disconnection feature runs after the user has disconnected. It is sometimes useful for the cleaning of data for the session or twist the redirection.

    In your case, the sentry function is probably not necessary. By default already checks if corresponding to the session id and session cookies, this should be enough. If you try to implement single sign-out, a sentry could check if the session is already authenticated, but the REMOTE_USER will be void. Invalid session function is called when the Sentinel (you're a custom or default) fails. If REMOTE_USER is not null, it can simply call APEX_AUTHENTICATION. POST_LOGIN to save the value of the header under the username, instead of making the normal redirection to the login page. It authenticates the user without checking with authentication credentials. The callback function is not necessary in your case. The authentication function is called when the user connects using the login page for the application (101). It can check the name of user and password for cases where $remote_user@-part is null.

    This can be implemented either as a plugin for authentication with the custom authentication scheme. The former is to be preferred to the production code, the latter is sometimes useful for prototyping. The texts point help plugin and authentication for the various functions include example code. If they are not enough, just respond here and I will try to come up with more concrete examples.

    Kind regards
    Christian

  • Variable declaration in a function

    Hi all

    Yes it is for a class :).
    I am building a function that will tell me how many years a boat has been continuous. I'm having a problem with where / how to declare a variable.
    I think that my function won't work if I can fix it - if I need help so much.
    Error message
    PLS-00201: identifier 'YEARS_INSERVICE' must be declared
    Here is my code for the function
    CREATE OR REPLACE FUNCTION get_years_inservice(
    boat_id IN boat.boat_id%TYPE) RETURN NUMBER IS
    BEGIN
    SELECT MONTHS_BETWEEN(SYSDATE, pur_date)/12 INTO years_inservice
    FROM boat
    WHERE boat_id = boat_id;
    RETURN ROUND(years_inservice);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    RAISE_APPLICATION_ERROR(-20348,
    'Craft with ID '|| boat_id ||' does not exist.');
    END get_years_inservice;
    Here is the code for my table of boat:
    -- Creates table of water craft for rent.
    CREATE TABLE Boat
    (Boat_ID NUMBER(10) 
    Boat_Name VARCHAR2(30) NOT NULL,
    Model VARCHAR2(30) NOT NULL,
    Manufacturer VARCHAR2(30) NOT NULL,
    Seating_Capacity NUMBER (10) NOT NULL,
    STATUS VARCHAR2(30) NOT NULL,
    pur_date DATE NOT NULL,
    last_maint_date DATE,
    CONSTRAINT "Boat_PK"
    PRIMARY KEY ( Boat_ID)
    )
    
    /
    -- Create Boat_ID Sequence
    CREATE SEQUENCE boat_id_seq
    START WITH     1000
     INCREMENT BY   25
     NOCACHE
     NOCYCLE;
    /
    
    --- Boat Data
    INSERT INTO boat
      VALUES  (boat_id_seq.NEXTVAL, 'Speedy', 'Speedster', 'Seadoo', '4', 'Available', '15-Jan-2010', '15-Jan-2012'); 
    INSERT INTO boat
      VALUES   (boat_id_seq.NEXTVAL, 'Gone', 'Speedster', 'Seadoo', '4', 'Unavailable', '15-Jan-2010', '15-Jan-2012'); 
    INSERT INTO boat
      VALUES  (boat_id_seq.NEXTVAL,'Mama Kin', 'Deck Boat', 'Ranger', '6', 'Available', '15-May-2010', '15-May-2012');     
    INSERT INTO boat
      VALUES  (boat_id_seq.NEXTVAL,'Beer R-U-N','Cuddy', 'Aerocraft', '6', 'Available', '15-October-2011', '15-May-2012');
    INSERT INTO boat
       VALUES  (boat_id_seq.NEXTVAL, 'Rampage', 'Pontoon', 'Sailstar', '10', 'Available', '15-March-2009', '15-March-2012');   
    INSERT INTO boat
      VALUES (boat_id_seq.NEXTVAL, 'Justyn Time',  'Pontoon', 'Sailstar', '10', 'Unavailable', '15-March-2009', '15-March-2012');   
    INSERT INTO boat
      VALUES (boat_id_seq.NEXTVAL, 'Triumph',  'Pontoon', 'Sailstar', '12','Available', '15-Jan-2012', '15-Jan-2012');   
    INSERT INTO boat
      VALUES (boat_id_seq.NEXTVAL, 'Big House', 'House Boat', 'Gulfstream', '16','Available', '15-Jan-2010', '15-Jan-2012');                   
    INSERT INTO boat
      VALUES (boat_id_seq.NEXTVAL, 'Cabo Wabo', 'Barge', 'Sea Raider', '25', 'Available', '15-March-2009', '15-March-2012');  
    
    COMMIT;
    We thank you in advance to research.

    G

    GMoney says:
    Still don't get what I expected much.

    select GET_YEARS_INSERVICE(1125) AS YEARS_INSERVICE from BOAT
    
    Yields:
    
    YEAR_INSERVICE
    1
    1
    1
    1
    1
    1
    1
    1
    1
    

    I need to make months in service, and I'm not sure why the results has 9 lines?

    You choose to SHIP without WHERE clause. BOAT has 9 lines, so the result will have 9 rows.

    You pass a hardcoded value (1125) rather than the table as suggested thomaso BOAT_ID. If you are running

    select boat_id, boat_name, get_years_inservice( boat_id ) years_inservice
      FROM boat
    

    you will always get 9 rows but each row will have several years of this vessel at sea.

    Justin

  • shared variable creates sound - problem, save data in crio

    Hi all

    I have a problem here...

    Why I get noise when using shared variables in my labview code...

    but when I remove these shared_varibles, the sounds are totally reduced...

    I use the shared variable for the data record. For the recording of data, I do a VI special folder under my computer. During my actual code CRIO.

    These two screws are to communicate using shared variables. Is there a better way to make the real-time recording apart from the use of shared data variables?

    I tried to record data directly to CRIO but it always fails... That's why I do a special VI under workstation for the logging of data...

    But if shared variables create sounds... my data record is no longer valid...

    Please help me...

    I downloaded some pictures... I hope that makes my problem clearly to you all...

    Hello auralius,

    Are these plots you have posted on the graph of velocity on the block diagram?

    I think that shared variables are affecting the timing of your loop and so affect the outcome.  I suggest you to add code to check if one of the iterations is late.  I suspect that the end iterations will correspond to the bad data that show you.

    You can try to enable the RT FIFO on the shared variable or you may need to add a second loop of communication and use a form any local communication to pass data to it.

    Take a look at http://zone.ni.com/reference/en-XX/help/370622G-01/TOC1.htm, including the sharing of data in deterministic Applications section for more information.

    Let me know how it goes,

    Sebastian

  • Is it possible to export the created wth ctx_ddl.create_preference preferences

    Is there a way to export the created preferences ctx_ddl.create_preference wth?

    11.2.0.3.0 Production NLSRTL

    Oracle Database 11g Enterprise Edition 11.2.0.3.0 64 bit Production

    PL/SQL 11.2.0.3.0 Production

    AMT for Linux: 11.2.0.3.0 Production

    Thank you.

    Look at ctx_report.create_index_script (). Should give you what you are looking for.

  • How to remove the variable created when using definedNamedWhereClauseParam()

    Hello

    My Jdev version 11.1.1.7.0.

    I'm Executive where clause programatically where I need to bind two bind parameters under certain conditions. Example, I have two bind variables X, Y.

    Here's the problem:

    Assume that the first time I'm setting one variable X, so I define X bind variable and execute the query.

    What second time I send only Y but not X. In this implementation of the scenario of VO throw an exception, given that the variable X is already created in the VO object and where clause does not have this setting.

    So how to remove variables created in the original Version all in definedNamedWhereClauseParam(). I need to erase what ever the previously created variable every time I execute method.

    I can make the similar functionlity using setWhereClauseParam (using literals). But I have a few technical restrictions for use.

    Could you please help me how to remove the variable before vo using definedNamedWhereClauseParam.

    Caused by: java.sql.SQLException: try to set a parameter name that does not intervene in the SQL: itemNumber
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:15969)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:911)
    at weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_OraclePreparedStatementWrapper.setObjectAtName (unknown Source)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:4669)
    at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3687)
    at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:22742)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1298)
    ... more than 96



    Thank you.

    -Diette.

    Published by: Vidya Diette on February 28, 2013 08:43

    Hello

    You need access to the variable Manager. Order of reading in the JavaDocs:

    http://docs.Oracle.com/CD/E28389_01/apirefs.1111/e10653/Oracle/JBO/ViewObject.html--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableManagerOwnerBase.html#getVariableManager%28%29--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableValueManager.html--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableManager.html#removeVariable%28java.lang.String%29

    Frank

  • Create Or Replace function error

    Hello

    I do the search of texts using Oracle SQL Developer: ODMiner... I imported the "WEBLOG" data into a table... These weblog data consists of the activity of users, date, time, url, etc. The first step I took was to use a function to convert the date and time I have in the data table, in a number representing the 40 minutes since 01/01/1990. I did it by dividing by 2400 (seconds in 40 minutes). The main objective is to have a period of time for the sessions.
    I used the following code,

    (SsnDate) CREATE or REPLACE FUNCTION
    DEFAULT VARCHAR2 03/01/18 EFFECTIVE DATE,
    TIME IN VARCHAR2
    ) RETURN NUMBER
    AS
    BEGIN
    RETURN TRUNC ((to_date(DATE||) e '|| TIME, ' Hh: mm: DD-MM-YY ')-to_date('01-JAN-1990','DD-MON-YYYY')) * (86400/2400);
    END ssnDate;

    This is what appeared in the newspaper after the execution of the statement,

    SsnDate compiled FUNCTION
    WARNING: the execution is completed with warning

    After that, I tried to create a VIEW to change the DATE and TIME with the ssnDate that was created earlier and concatenate the CS_URI_STEM (which is the accessible resource) and CS_URI_QUERY (which is the query, if any, the client was trying to perform) in a new field called WEB_LINK.

    This is the code used

    CREATE OR REPLACE VIEW WEBLOG_VIEWS ("C_IP", "WEB_LINK", "CS_USER_AGENT", "SESSION")
    AS
    SELECT ssnDate (LOG_DATE, LOG_TIME) AS "SESSION."
    C_IP,
    CS_USER_AGENT,
    (CS_URI_STEM |'?) ' || CS_URI_QUERY) AS WEB_LINK
    OF THE WEB BLOG.

    Now that I got the following error...

    Error from the 1 in the command line:
    CREATE OR REPLACE VIEW WEBLOG_VIEWS ("C_IP", "WEB_LINK", "CS_USER_AGENT", "SESSION")
    AS
    SELECT ssnDate (LOG_DATE, LOG_TIME) AS "SESSION."
    C_IP,
    CS_USER_AGENT,
    (CS_URI_STEM |'?) ' || CS_URI_QUERY) AS WEB_LINK
    WEBLOG
    Error in the command line: 3 column: 38
    Error report:
    SQL error: ORA-00923: KEYWORD not found where expected
    00923 00000 - "FROM keyword not found where expected"
    * Cause:
    * Action:

    I do not understand where I am going wrong with this... It comes to the data preparation step that requires me to prepare the data before applying the techniques of modeling or algorithms... The next step might be to group the data, based on the time of the session, ip and the user agent of each session as well as the fields web_links visited by the user of the session.

    I would be really grateful for all entries on where I'm wrong and all the solutions for it!

    Good. Please close the message.

    Concerning
    Girish Sharma

  • How to create the javaScript function that erases the text of the field values

    Hello
    How can I create a javaScript function to clear the values of the text fields
    and I want to call this function on the clear button on my custom area

    Yes it is possible but not recommended approach.

    Here is the link that you can use if you want to implement using javascript
    http://www.itechies.NET/tutorials/JScript/jsexample.php-PID-set_field.htm

    Thank you
    AJ

  • Variable effects with Loop function.

    I need to create a code that take the following strings:

    
    "Scale"
    "Position"
    "Side"
    
    
    
    
    
    
    
    
    
    
    
    

    And each of them, put in a copy of this code:

    thisComp.effect(!!!STRING HERE!!!)("Layer").name;
    
    
    
    
    
    
    
    
    
    

    And after that, the three variables, each one, receive a complete code.

    
    var a;
    var b;
    var c;
    
    
    
    
    
    
    
    
    
    
    
    

    The result would be this:

    
    var a = thisComp.effect("Scale")("Layer").name;
    var b = thisComp.effect("Position")("Layer").name;
    var c = thisComp.effect("Side")("Layer").name;
    
    
    
    
    
    
    
    
    
    
    
    
    

    I try to do it like this:

    var strings = ["Scale", "Position", "Side"];

    var val = function (a, b, c) {}

    for (var i= 0; I <channels.length; i ++) {}

    effectof the var = thisComp.effect () ('Layer') .namestrings[i];

    Val (effect);

    }

    }

    But don't have experience with functions and loops For.


    And not whether it is the right way to do it.

    I need to do this because my code becomes too long for many repetitions.

    I think for this, will have to use loop and the function.

    Thank you.

    You might have better luck if you describe what it is you are trying to do, rather than how you try to do, because it is not obvious (to me at least) exactly what your code is supposed to accomplish.

    Dan

  • Is it possible to export objects created by the user who is in system schema?

    Legends of dear,

    I need your help which is at - it a way to export the user objects created in the schema of the SYSTEM? Sorry I hope the question is silly, but unfortunately one of our user created all their objects in the SYSTEM schema.

    Oracle 11g XE Windows environment

    1. we try to identify objects created by the user of the SYSTEM.

    2. check the number and names of objects with tables, procedures, functions, triggers, and sequences.

    Thank you

    Knockaert

    karthiksingh_dba wrote:

    Legends of dear,

    I need your help which is at - it a way to export the user objects created in the schema of the SYSTEM? Sorry I hope the question is silly, but unfortunately one of our user created all their objects in the SYSTEM schema.

    Oracle 11g XE Windows environment

    1. we try to identify objects created by the user of the SYSTEM.

    2. check the number and names of objects with tables, procedures, functions, triggers, and sequences.

    Thank you

    Knockaert

    Search the object created recent & owned by SYSTEM.

    Since duhveloper object creation, then would have same DDL to repeat once again, in different schema.

    It is a professional organization that maintains the source code in the code repository?

  • Using variables for the AS2 function arguments

    Hello

    I am trying to create a function in AS2.

    After you create the function, I want to use the values stored in the variables specified for the arguments to the function instead of manually typing static values for the calculation of the service. Also, I want to use the function to assign a new value to the existing variable.

    I asked a similar question here 2 days ago and got the answer (thanks), but now I have another question - how to create the function to assign a value to the variable, the variable itself is also a function argument?

    For example, I have 6 numeric variables:

    var CoinA:Number = 10;
    var CoinB:Number = 20;
    var CoinC:Number;

    var CoinD:Number = 30;
    var CoinE:Number = 40;
    var CoinF:Number;

    Then I tried to create a function to assign values to the variables stuck and CoinF:

    function CalculationA(FirstCoin,_SecondCoin,_ThirdCoin):Void {}

    FirstCoin = SecondCoin + ThirdCoin;

    }

    CalculationA (stuck, CoinA, CoinB);
    CalculationA (CoinF, stuck, CoinF);

    The code above didn't really affect the values of 30 and 70 stuck and CoinF variables, but instead, stuck and CoinF values are undefined.

    Please give me the correct code if there is a good way to do this.

    Thank you

    Here's a way to do it, passing a string value with the name of the variable instead of the actual variable name...

    var CoinA:Number = 10;
    var CoinB:Number = 20;
    var CoinC:Number;
    var CoinD:Number = 30;
    var CoinE:Number = 40;
    var CoinF:Number;

    function CalculationA(FirstCoin,_SecondCoin,_ThirdCoin):Void {}
    This [FirstCoin] = SecondCoin + ThirdCoin;
    }

    CalculationA ('stuck', CoinA, CoinB);
    CalculationA ("CoinF", CoinD, person);

    (Note that in your second function call, I changed coins since CoinF (ThirdCoin) is not defined at this time).

  • Using variables for an AS2 function arguments

    Hello

    I am trying to create a function in ActionScript 2.

    After you create the function, I want to use the values stored in the variables specified for the arguments to the function instead of manually typing the static values for the arguments to the function. And also I want to use the function to assign a new value to the existing variable. Is this possible?

    For example, I've defined variables "here is a simple function named"CalculationA".

    var CoinA:Number = 10;
    var CoinB:Number = 20;
    var CoinC:Number;


    function CalculationA (CoinA, CoinB, stuck) {}

    Stuck = Number (CoinA) + Number (CoinB);

    }

    The code above does not really. No value is assigned to the variable stuck.

    Can someone give me a good AS2 code please?

    Thank you

    use:

    var CoinA:Number = 10;
    var CoinB:Number = 20;
    var CoinC:Number;

    CalculationA (CoinA, CoinB);

    function CalculationA(coinA,_coinB):Void {}

    Stuck = Number (coinA) + Number (coinB);

    }

  • How can I call create a public function to make something happen in another .swf

    Hi guys,.

    I am trying to create a public service, I have a class of decument with all of my variables in it, I found out how to bring in external .swf files, now I need a way to have a trigger even something on a .swf separated

    So for the moment I have a flunction that works on the parent

    stage.addEventListener (MouseEvent.MOUSE_MOVE, mousePosition);

    function mousePosition(event:MouseEvent) {}

    If (mouseX > = 125)

    Navigator.Visible = false;

    trace (MouseX);

    }

    So now, how do the public service?

    When I try to put it in my document class, I get errors because the browser of MC is only on the main timeline. (not in other sovereign wealth funds I open)

    I'm trying to find how to call the function using a string in my doc class

    public var nav1:String = "browser";

    Then the function

    public void resetnav()

    {

    String(NAV1+".) ("Visible = false;");

    }

    That seemed like a good idea, but it does not work...

    You guys can help me out here?

    See you soon

    void

    Read lower than KB.  the relationship between the two rulers, this connection varies.  in the examples, with the exception of the example query string, the first line of code without comment shows a variable that can be used as the connection.

  • Create the search function of price in php recordset object range

    Hello

    On a continuation of a previous thread, I find that the expertise of web designers on these forums turns much more educational and beneficial than the large number of books that I bought to set up a Web site for my real estate business. (Without seeming too subservient!).

    I managed to create a working site where properties in my database and their related images are drawn in a recordset on the live Web page and everything works perfectly. However, I would like to add some simple filters on the search page to refine the results of the database.

    I find that given a push or piece of coding I can work out the rest myself. Therefore, I would like to do is create a price range drop down, where customers can select the database properties in one of 3 categories: under £1 m, 1 m £-£2 m and more than 2 million pounds.

    If I understand correctly, I need two pages to do this, a page of html form where customers will enter their search criteria with similar coding to:

    < do action = "search_results.php' method ="post"name = 'Search' id ="Search">"

    Price range:

    < select name = "prop_price" id = "select8" >

    < option value = "< 1000000" > > £ 1 000 000 < / option >

    < option value = "1000000-2000000" > £ 1 000 000 - £2 000 000 < / option >

    < option value = "> 2000000" > > £ 2 000 000 < / option >

    < / select >

    < input name = "Search" type = "submit" id = "Search" value = "Search" >

    < / make >

    (my apologies for my messy coding - I'm still new and do not know if some of the fields are not yet mandatory!).

    Then, I would need to create the search_results.php page which would give the results of properties in the database according to the submitted price range. I tried several different methods available online through the forums, but can't seem to get anything after 2006, or everything that actually worked. I use Dreamweaver CS5 and MySQL to my db.

    How to integrate the above search criteria in a dynamic php doc? The only way I managed to get something working is to create a new page for each of the variables price - something that is incredibly inefficient, and hardly something that can be developed easily move forward.

    Here is the php code, I currently have which retrieves all the properties of my database (connection name is test, the name of the recordset object is getDetails):

    <? php require_once('Connections/test.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    $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 "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $maxRows_getDetails = 20;

    $pageNum_getDetails = 0;

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

    $pageNum_getDetails = $_GET ['pageNum_getDetails'];

    }

    $startRow_getDetails = $pageNum_getDetails * $maxRows_getDetails;

    @mysql_select_db ($database_test, $test);

    $query_getDetails = "SELECT id, prop_name, prop_price, country, post_code, short_desc, picture images FROM order by prop_price DESC";

    $query_limit_getDetails = sprintf ("%s LIMIT %d, %d", $query_getDetails, $startRow_getDetails, $maxRows_getDetails);

    $getDetails = mysql_query ($query_limit_getDetails, $test) or die (mysql_error ());

    $row_getDetails = mysql_fetch_assoc ($getDetails);

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

    $totalRows_getDetails = $_GET ['totalRows_getDetails'];

    } else {}

    $all_getDetails = mysql_query ($query_getDetails);

    $totalRows_getDetails = mysql_num_rows ($all_getDetails);

    }

    $totalPages_getDetails = ceil($totalRows_getDetails/$maxRows_getDetails)-1;

    ? >

    < table width = "990" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >

    < b >

    < /tr >

    <? PHP {? >}

    < b >

    < td > < img src = "show_image.php? id = <?" PHP echo $row_getDetails ['id'];? > ' > < table >.

    < td > <? PHP echo $row_getDetails ["prop_name'];? > < table >

    < td > <? PHP echo $row_getDetails ["prop_price"];? > < table >

    < td > <? PHP echo $row_getDetails ["short_desc"];? > < table >

    < /tr >

    <? PHP} while ($row_getDetails = mysql_fetch_assoc ($getDetails));? >

    < /table >

    <? PHP

    mysql_free_result ($getDetails);

    ? >

    Essentially, I need to integrate the function WHERE my request sql, but how do I do so that it is dependent on the demand of customers on the search page...?

    Sorry if this is incredibly easy, but I am at a complete loss now and can't try all the techniques of the various forums out there! I even downloaded the framework of Zen cart just to see if I could find something in the large number of php pages that goes with it!

    I hope someone can help-

    Thank you

    Jack

    Noba_arsene wrote:

    OK, have updated

    If the current Recordset does not work or not?

    Please correct the elements of form, thus:

    Price min

    Price Max

    can´t you use the same value of id/name with several elements of shape, because the motion of the recordset must unique variable names $_POST. Please rename the values of name/id like this:

    Price min

    1. When you set a property of "Studio", you actually store room 0 value in the database? If so, it s very well, but if it s a different value (or even no value at all, aka NULL) please let me know.

    2. as mentioned in a previous post, you shouldn´t use the comparison operators in conjunction with the entire option values. Change the value to '> 4' with '5', which will be all you need to get this segment of our conditional query defined properly.

Maybe you are looking for