Load the page with a selected record

I have a PHP page that is linked to a database of mySql with 2 recordets.  The first presents a simple list of records then a link to the presentation of the details of these records in a table below.  Everything works fine but the loading of the page details table is, of course, an empty shell until the user clicks on the link url in the list which loads the record in the table.

I'd like the page to load with a recording of the sample inside so that it looks better - preferably a record at random, but if not, the first in the list.  What is the easiest way to achieve this?

Ah ok, so it seems that the first Recordset is filtered on a certain setting? You view several records in the first Recordset in a region of repatriation? And the second table shows the details of a single record, but there should be a folder in the first Recordset. Hmmmm.  The first thing that comes to mind, is to set a variable and fill it with the ID value of the first record since the first Recordset. Then use this variable as a default in the second set. I am not sure of is this: when you fill out the variable, it will either use the first record in the game or the Recordset returns actually several records with different values for each ID, it can raise an error.

I don't usually use the result of a recordset to filter a second, but I did - but it was only when the first Recordset returns only a single record.

Tags: Dreamweaver

Similar Questions

  • Automatically loads the page with https

    Firefox will automatically load the following sites using https

    If I type in
    cgets.com

    It automatically goes to https://www.cgets.com

    If I type in
    Google.com

    It automatically goes to https://www.google.com

    Why is this and is at - it a way to stop if to do this?

    Current version of Firefox may prefer a secure connection if you have never used a secure https connection to visit the pages on a Web site.

    Try to set the Boolean browser.urlbar.autoFill false pref on the topic: config page.

    See 'Prevent Firefox to automatically complete URLs':

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".
  • Fire fox is slow and on a single website, it goes on the site but will not load the page

    Fire fox is slow. Also on a single Fire fox web site goes on the website but will not load the page
    Questions began Tuesday, June 16, 14. Website can be opened with other browsers.
    I am running windows XP sp2

    Start Firefox in Safe Mode {web link}
    While you are in safe mode;
    Press < Alt > or < F10 > to display the toolbar.
    Followed;

    Windows; Tools > Options
    Linux; Edit > Preferences
    Mac; name of the application > Preferences

    Then Advanced > General.
    Find and stop using hardware acceleration.

    Dig safe web sites and see if there is still a problem. Then restart

  • Search bar on the Macbook Air doesn't work, will allow me to load the pages of Favorites and links to these pages, but not let me google from the bar or manually enter Web sites, however, it works perfectly on the guest user

    Search bar on the Macbook Air doesn't work, will allow me to load the pages of Favorites and links to these pages, but not let me google from the bar or manually enter Web sites, however, it works perfectly fine on the guest user. Have you tried restarting and it still does not work.

    The problem should be solved now.

    Otherwise:

    OS X

    iOS

    Workaround for problems with the Safari address bar

    http://osxdaily.com/2016/01/05/fix-Safari-freezing-address-bar-use/

  • Could not load the page that contains the google map

    I have a google map on a page, when I click on a link to the page, the page cannot be loaded successfully (Nothing on the browser). After you click F5 to refresh, the page (with map) opens normally.

    Cannot load google map page.png

    This is the code in

    < af:group id = "g1" >

    < div id = "map" style = "width: 100%;" height: 380px; "" xmlns = " http://www.w3.org/1999/XHTML " > < / div > .

    < / af:group >

    " < af:resource type = 'javascript' source = ' http://www.Google.com/JSAPI?key=AIzaSyA9hoNzClhEcuz5M0zuEWg4Vc7OsrU-ISO "/ > "

    < af:resource type = "javascript" >

    Console.log ("ABBBB");

    Google.Load ("maps", "2.x");

    function initialize() {}

    map = new google.maps.Map2 (document.getElementById ("map"));

    map.addControl (new GLargeMapControl());

    map.addControl (new GMapTypeControl());

    map.setCenter (new GLatLng (15.8671701, 105.4848866), 5);

    Console.log ('Load card ok');

    }

    google.setOnLoadCallback (initialize);

    < / af:resource >

    Could someone help me solve this problem? Thks!

    I solved this problem:

    Google.Load ("maps", "2.x", {callback: initialize});

    Hope this help anyone else!

  • execution of Javascript blocks by first loading the app with google included api maps

    Hello

    I am a forms developer oracle and nine in the Apex. The apex is a wonderful tool for RAD. So, I'm currently developing an integrated mobile application with Google Maps features. For several days, I'm stuck on the following problem:

    Demo page: https://apex.oracle.com/pls/apex/f?p=364:4931249888545:

    When I run the present the first time it crashes after the registration point 'alert("2:geocoder")'; in the script. But after discount 'Page 2' is executed the script quite well.

    If I then run the page/application and previously deleted the browser cache is the problem here again.

    Here the implementation (one of the several hundreds of different try ):

    Page1: Button 'Gopage2': redirect to page 2

    Page2:

    -Settings page:

    File JavaScript URL: https://maps.googleapis.com/maps/API/js?v=3.exp

    Function and Global Variable declaration:

    function getRevLocation(){
    var geocoder;
    var marker;
    var lat;
    var lng;
    
    
    alert("Start");
    lat = parseFloat(48.9304902);
    lng = parseFloat(8.4458497);
    //lat = parseFloat($x("P6_LATITUDE").value);
    //lng = parseFloat($x("P6_LONGITUDE").value);
    alert (lat+"/"+lng);
    
    
    var latlng = new google.maps.LatLng(lat, lng);
    alert("1:latlng");
    
    
    geocoder = new google.maps.Geocoder();
    alert("2:geocoder");
    
    
    geocoder.geocode({'latLng': latlng}, function(results, status) {
    alert("3:inFunction");
    
    
      if (status == google.maps.GeocoderStatus.OK) {
        if (results[1]) {
           alert("4:StatusOK"+results[1].formatted_address);
           $s("P2_CITY",results[1].formatted_address);
        }
      } else {
         alert("6:Error");
         $s('P2_CITY',('Geocoder failed due to: ' + status));
        }
    });
    }
    
    

    Run when the Page loads:

    getRevLocation();
    
    

    Help, please. I'm totally desperate.

    Best regards

    Halit

    After many tests and learn the basics of javascript, here is the solution that works very well:

    In Page settings:

    URL of the file:

    https://maps.googleapis.com/maps/API/js?v=3.exp&callback=initialize

    Function and Global variable declaration:

    var geocoder;

    function initialize() {}

    Geocoder = new google.maps.Geocoder ();

    }

    function getreo (callbackFunction) {}

    var marker;

    var lat;

    var lng;

    LAT is parseFloat (48.9304902);.

    LNG is parseFloat (8.4458497);.

    LAT = parseFloat ($x("P6_LATITUDE").value);

    LNG = parseFloat ($x("P6_LONGITUDE").value);

    var latlng = new google.maps.LatLng (lat, lng);

    Geocoder.geocode ({"latLng": latlng}, {function (results, status))

    If (status == google.maps.GeocoderStatus.OK) {}

    If (results [1]) {}

    $s("P6_CITY",results[1].formatted_address);

    }

    } else {}

    $s ("P5_CITY", ("geocode is not right:" + status));

    }

    });

    If (callbackFunction)

    callbackFunction ();

    }

    Atrribute body of HTML page:

    OnLoad = "Initialize () '"

    In dynamic Action:

    Load event of the page with javaScript Action:

    getreo();

    In my application logic, I implement in above the dynamic Action, get the location coordinates with the Plugin 'Oracle - get location [plug-ins] HTML5 cards'. It fills the elements P6_LATITUDE, P6_LONGITUDE, P6_LOCATIONMSG

    In the next steep to get the reverse geocoding city of google. To do this, I created a second dynamic action at traffic lights after changing the value of the item p6_locationmsg went before plugin. She runs the javascript code to call getreo();

    Good luck!

    Halit Pan

  • Live Preview error: could not load the page Live Development

    When I click on live preview.  Cromemo open without images to http://127.0.0.1:49836/Edge%20Code%20Assets/Start/index.html

    Can I get the Preview Live error message: could not load the page Live Development

    What should I try to fix this.

    Dean

    It is now defective due to a change in API with Chrome v34. We are currently working on a change which will be published shortly. She will work in Chrome v33, but I don't know if there's a way to go back.

    FYI, edge Code is based on media (http://brackets.io) that has the fix for this problem, so you can also try with strips.

    Randy

  • Source of SQL in the Page with variables

    Hello

    I need to set up a source of the page with the conditions in which the declaration.
    For example Select * from mytable where myField = myVar1.
    The where statement must be used, if a text box: myBox contains a specific value.
    The content of myVar1 should vary also in regard to the value in: myBox.
    How can I do this?
    Thanks in advance for you help.

    Edited by: kps204020 the 05.10.2012 16:09

    Select * from mytable where (myField =: P1_PAGE_ITEM or nvl(:P1_PAGE_ITEM,-1) =-1)

    Assumming myField is a numeric field, and P1_PAGE_ITEM is your myVal1 and is assumed to be a number. I must use you bind variables for security reasons.

  • updating of the chart without loading the page

    Hi friends,

    I use apex 4.1. now I want to refresh only the graphic region I created the graphic area and I replaced the mentioned below instead of #CHART_REFRESH javascript code # in the Source of the region

    JavaScript code
    --------------------
    < script type = "text/javascript" >
    function RefreshChart()
    {
    Alert ('a');
    var chart_name = ' #CHART_NAME #'.substring (1);
    apex_RefreshChart (& APP_PAGE_ID, chart_name, 'en');
    }

    < /script >

    and then I created an item_id is P7_X(date format), then created dynamic action if I change the P7_X(that_is_change_the_date).it of the order of the day will address the dynamic action, first of all submit P7_X point id throught plsql and then javascript call function (RefreshChart()) in the source.but region can't be able to call the javascript function in the source of the region.
    kindly tell me how to call the javascript function if javascript works within the source of the region (region of graph)
    If it's no way to tell me the procedure to see how cool the graphics area without load the page.kindly help me...

    Hi 888837,

    Be a little more patient! He is a volunteer help forum where everyone also has a day job. Keep in mind that we probably don't sit in the same time zone and have different work schedules. If you need fast response time, then you should get in contact with the Support of Oracle.

    That said, I had a look at your example. The only error, why it did not work was because you used two different date formats. Used for the switch of date dd/mm/yyyy and to the TO_DATE in the SQL statement, you use mm/dd/yyyy. Now I've changed two masks of DD/month/yyyy format to make it more transparent month. If I now enter on 2 February 2008 and leave the graphic field is getting updated with the expected data.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Open the page with the parameter provided by browser

    Hello

    There is a page built on a VO with a binding of parameter p1.
    adfc-config, I read the param p1 from the entrance of the browser:

    < view id = "page1" >
    Page1.jspx < page > < / print this page >
    < input-page-setting id = "__1" >
    < security > #{param.p1} < / value >
    < value > #{viewScope.p1} < / / value >
    < / Entry-page-setting >
    < / view >

    in order to show immediately the setting depending on loading the page, data
    What am I supposed to apply again?
    for the moment, I have a button to call a procedure that defines the default where clause and calls execute query...
    but I would like to see the update without pushing buttons
    is it on the placement of function for a backing bean method? Which one? at what stage?
    or do additional installation in adfc-config?

    probably what I found, it is a peace of code, can help:
    Isn't it?

    < f: view beforePhase = "#{MainPageBean.phaseListener}" >
    < af:document id = "d1" >
    < af:form id = "f1" >

    < / af:form >
    < / af:document >
    < / f: view >

    MainPageBean.java:

    Import javax.faces.event.PhaseEvent;
    public class MainPageBean {}
    public MainPageBean() {}
    }

    {} public void phaseListener (PhaseEvent phaseEvent)
    If (phaseEvent.getPhaseId () .equals (phaseEvent.getPhaseId (). RENDER_RESPONSE)) {}
    To get the request header
    FacesContext facesContext = FacesContext.getCurrentInstance ();
    HttpServletRequest request = (HttpServletRequest) () .getRequest () facesContext.getExternalContext;
    Var currentCustomerId = request.getParameter("p1");

    Please advise/comment on

    Something like this: http://blogs.oracle.com/shay/entry/passing_parameters_to_adf_appl

  • How to assign a value to a control to display after loading the page?

    I use JDeveloper 10.1.3.3 using ADF.

    How can I run a support bean method to populate a control immediately after loading the page. My intention is to populate a control hidden with the session id. The code that I would run is something like this:

    FacesContext ctx = FacesContext.getCurrentInstance ();
    ExternalContext ectx = ctx.getExternalContext ();
    HttpSession mySession = ectx.getSession (false) (HttpSession);
    String sessionId = mySession.getId ();

    Where would I put this code?

    Thank you

    John

    Published by: John Matozzi, October 28, 2008 15:47

    Hi John,.

    create a method called getSessionId returning a string in your bean support.

        public String getSessionId(){
    
            FacesContext ctx = FacesContext.getCurrentInstance();
            ExternalContext ectx = ctx.getExternalContext();
            HttpSession session = (HttpSession) ectx.getSession(false);
            return session.getId(); 
    
        }
    

    then in your page you can use the link editor to call the method and display its value.

    
    

    Brenden

  • Basic HTML can only configure Firefox to automatically load the pages as "Basic HTML"?

    Will be loading the pages as "Basic HTML" load faster?
    Pages take 30 to 60 seconds, OK download at 1 MB per minute.
    Some sites, for example Yahoo Mail, have a button to load faster in basic HTML. Other sites can load it as basic HTML?
    So: Can I configure Firefox to automatically load into basic HTML if this site can be?

    (Firefox 3.6.15, Windows XP, 2 MB of RAM, ISP is satellite Hughes in Virginia, USA).

    You can consult:

    You must subscribe to a list of filters (for example the EasyList).

  • Error "Could not load the page" when you click the backup and Restore Center

    Original title: Save reestore center problems

    OK so I need to restore my pc and when I click on the backup center and restoration he always says "Unable to load the page"... . How can I fix

    try to reinstall the backup files if you have a windows disk to use to reinstall or if your computer has windows factory preintalled windows, you could reinstall striehgt from your computer

  • Until a few days ago I was able to print a PDF from Acrobat Reader ms in Windows 7.  Now I get "the document could not be printed."  The next panel says "there are no pages selected to print," even if all the pages have been selected.  Thoughts?

    Until a few days ago I was able to print a PDF from Acrobat Reader ms in Windows 7.  Now I get "the document could not be printed."  The next panel says "there are no pages selected to print," even if all the pages have been selected.  I've uninstalled Reader and reinstalled, but the problem remains.  I also tried to repair the installation and that doesn't work anymore.

    Thanks for the tip.  It turned out that kind Reader has been commissioning in protected mode.  I changed the setting and it prints now as before.

    Thank you

  • I can't download anything, when I have the page with four blue square bit he never move forward. Maybe, someone know why? Thank you!

    I can't download anything, when I have the page with four blue square bit he never move forward. Maybe, someone know why? Thank you!

    Please try another web browser, or delete the browser history and cookies and the same retry.

    Hope this will help you.

    Kind regards

    Hervé Khare

Maybe you are looking for