Move to specific record

I am building a PHP detail page with a navigation list of
database records down the left side, and the middle will display
info for each of those records, so when one of the links on the
left is clicked, the page reloads and displays the relevent info.
Thing is, it's not doing it! It is still displaying the first
record of the db no matter what record is clicked.
I have a recordset for the navigation list, and I have a
recordset for the content; I have a 'go to detail page' set up on
the navigation recordset which posts to itself, ie. the same page
it is on already, and the url displays the correct record ID; the
page also has a 'move to specific record' behaviour which is based
on the content recordset, but it's not working.
What am I missing? Obviously, I am doing something wrong. Can
I not have content on a detail page where a DB driven link can post
to the same detail page?
Does that makes sense?
Mat

Right, I have just built a list page and a detail page to
test this out. I have done this hundreds of times in asp, but it
doesn't seem to be working in php!
1/On the list page I have a list of database records that
link to the detail page.
2/When the link is clicked I have a go to detail page and I
am passing the url parameter of fld_id
3/On the detail page I have the move to sepcific record
behaviour which is collecting the fld_id parameter
Is that not right? Is it handled differently in PHP to how it
should be done in asp?
Mat

Similar Messages

  • Move To A Specific Record

    http://63.134.247.210/searches/doubles.asp
    DW 8.02 Win XP Pro
    How do I get the "Move to specific record" object to work on
    this .ASP
    page? I have been trying for days and can not even get it to
    show up on the
    page.
    Thanks,
    Bobby

    How about something along the lines of this ?
    Ps. you might want to use Scrollable resultsets if you want to move back up the
    resultset.
    regards,
    Owen
    boolean found = false;
    while ( (!found) && (resultset.next()) )
        int id = resultSet.getInt ( "id");
        if (id == 1979 )
           found = true;
    if (found)
        // we're positioned on the right record
    else
       // throw exception... couldn't find the id
    }

  • Help: Data validation before commit or move to next record

    The form that I am working on allows data insert. It needs to have a feature to inform the end user for incomplete field(s) before commit_form or move to next record for updating. Please let me know how you would do it.
    Thank you,
    Jimmy

    To prevent cursor movement out of a field in a When-validate trigger, all you do is    Raise Form_trigger_failure;However, if the field is null and the user does not enter anything while tabbing through, or just clicking in then clicking somewhere else, the When-validate-item trigger does not run. You have to specifically check if the field is null in the When-validate-record trigger.

  • See my problem no master record move to next record

    hi master
    sir
    i have master detail block master table have all data but detail no data i need feed data in detail then i goto in detail block write value and press F10 for save
    for new record in detail
    in detail blick post-block or post_record or post_insert event i write this code
    go_block('masterblock');
    next_record;
    go_item('detailblock.item');
    but not responses no master block move to next record still and my curser sitll in last postion
    sir how i move master record after save the detail record and jump to detail block for new record
    please give me idea or code
    thanking you
    aamir

    thank for reply
    sir your help very usefull for my but when i press F10 then system show massage do you want to save change the record
    sir how i avoid that window and directly move to next record
    please give me idea
    thanking you
    aamir

  • My code not give me result and error for move to next record please see

    hi master
    sir i import this file also
    import javax.faces.event.ValueChangeEvent;
    then my error remove
    i am use this code in button event
    getMfatableDataProvider().cursorNext();
    form1.discardSubmittedValues("virtualForm1");
    and my textField is bounded with data provider table field
    please give me idea how i show next rocord in page when user press button
    thank's
    aamir

    thank for reply
    sir your help very usefull for my but when i press F10 then system show massage do you want to save change the record
    sir how i avoid that window and directly move to next record
    please give me idea
    thanking you
    aamir

  • Automator action to move a specific file type to a folder..

    've started shooting pictures in raw and jpg format. After I grab the pics from my camera, I'd like to put the raw files in a separate folder.
    I've played around a little but can't figure it out-- so I dunno if it's possible. Is there a way I can make an automator action where I enter or select the folder and run the action. It then makes a folder named RAW and moves all of a certain file type to the RAW folder. Is this possible with automator?
    I'd like it to make a folder named RAW inside the current folder I'm in or have selected.
    I think I figured this out using filter finder items, and move to specific folder, but I think I need to learn how to use variables for this to work how I want it. Do I need variables or is there another way?

    the following script should do it provided your Raw image files have extensions "raw" (do they?). If they have another extension, modify next to the last line accordingly.
    tell application "Finder"
    set theFolderName to "Raw"
    set curFolder to (folder of the front window as alias)
    -- Determine whether the specified folder exists
    if folder theFolderName of curFolder exists then
    set theFolder to folder theFolderName of curFolder
    -- Create a new folder, if it doesn't exist
    else
    set theFolder to make new folder at curFolder with properties {name:theFolderName}
    end if
    move (every file of curFolder whose name extension is "raw") to theFolder
    end tell
    Save the above script as an application using Script editor. To use it, select the folder you want to work on and run the script.

  • I need to update specific records(of variable lengths) in a file. I can get the correct record but when I update it(add info), it overwrites part of the record following it. I am using labview 6.0

    I need to update specific records(of variable lengths) in a file. I can get the correct record but when I update it(add or change info), it overwrites part of the record following it. I am using labview 6.0. I need to be able to insert information into the middle of a file without disturbing the data before and after

    It's hard to give more specifics without more detail, but in general you're going to need to read in the entire file, split it into three pieces (everything before the record of interest, the record itself, and everything after the record of interest), modify the record, reassemble the three pieces in proper order, and write the whole thing back to the file.Of course if the file is very large you might not want to actually implement it this way, but conceptually at least, this is what you are looking at.If this file some sort of proprietary format?Mike...PS: this type of issue is why I really like databases...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • URL in email to a report on a specific record

    Hi - I have setup an email notification process that will send a URL to bring the user back to a report for a specific record. The link is bringing me back to the right page, but there are no results for the report.
    How do I go to the page AND run the SQL in my report specific to that record?
    A. Page Process for email:
    declare
    l_body_html varchar2(4000);
    begin
    l_body_html := '<p>A new order, number '||:P21_REQ_ID||' has '||
    'been placed. To review and fulfill this order, click the '||
    'link below.[/p><p>[a href="http://'||OWA_UTIL.GET_CGI_ENV('HTTP_HOST')||
    OWA_UTIL.GET_CGI_ENV('SCRIPT_NAME')||'/f?p='||:APP_ID||':100:::::'||':P21_REQ_ID:'||
    :P21_REQ_ID||'">View Order '||:P21_REQ_ID||
    '</a></p>';
    HTMLDB_MAIL.SEND(
    P_TO => '[email protected]',
    P_FROM => '[email protected]',
    P_BODY => l_body_html,
    P_BODY_HTML => l_body_html,
    P_SUBJ => 'Service Request # '||:P21_REQ_ID);
    end;
    *B. URL after clicking the link in the email (goes to correct page, but no results):*
    http://MyServer:7777/pls/apex/f?p=149:100:3573333726951794:::::P21_REQ_ID:42
    *C. SQL for report on page 100:*
    select     "SR_REQUESTS"."REQ_ID" as "Request ID",
         "SR_REQUESTS"."REQ_NAME" as "REQ_NAME"
    from     "SR_REQUESTS" "SR_REQUESTS"
    where "SR_REQUESTS"."REQ_ID" = :P21_REQ_ID
    Edited by: mterlesky on Oct 7, 2008 1:56 PM

    You have one too many colons in the f?p URL.
    Scott

  • Function module for move internal table records into MSexcel file

    Hi all,
    Tell me the function module which is used to
    move internal table records in to MSexcel file.
    Give the sample program...

    Please search the forum for FM  "GUI_DOWNLOAD" You will get tons of threads with sample code.
    Also take a look into SAP_CONVERT_TO_XLS_FORMAT
    Thanks

  • How to drill or navigate to specific records from a pie chart

    Hi,
    I have created a report that has a Pie chart view in it. What i want is that when i click on the chart it should navigate me to the specific records. E.g. I have a chart that shows %age of satisfied customers and %age of Not Satisfied Customers, what we are looking for is that when I click on satisfied customers's area, it should take me the satisfied customers records ony and same goes for Not Satisfied Customers.
    Can anyone help ?? I have tried the drilling option under charts properties, but that doesnt seem to be working.
    Thanks
    Ahmed

    Hi Martin,
    I haven't tried it, but can't you use a filter? Drag out a line from the data source and choose "filter" or drag a filter from the compose panel to the story board. Place the filter between data source and chart.
    Change the filter properties so that the specific value is filteres.
    Best Regards, Benni

  • How to lock a specific record

    Let’s say I need to lock a specific record from a form so nobody could even select this record from database.
    How do I do this?
    Thank you in advance

    Add a default_where property for your block that will eliminate this record from being selected.
    For example:
    set_block_property('emp','default_where','ename!='SCOTT');

  • Move to next record / wildcard search

    Hi
    Hope you can understand this explanation..
    I have searchable database for Holiday & Residential
    property here
    http://www.roomtobreathesl.com
    (search facility in the navigation menu)
    The results page for this search works fine for when you
    specify a certain
    area, certain amount of beds etc as it only shows a small
    amount of
    properties.
    However when you do a search for any area / any amount of
    rooms / any type,
    the query brings up over 40 results, so a move to next record
    is used. This
    is where the problem lies. You cannot move to next record as
    the 'Next
    record' link is looking for another wildcard search (see
    status bar).
    Any ideas how to remedy this?
    Thanks for any help
    Gary

    oops!
    Sorry sent you the previous version that's online.
    I also tried doing a search and replace and changing all
    'Request.Form' to
    'Request'
    Still didn't work.
    This is how it was when it wasn't working.
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="Connections/YotShop6.asp" -->
    <%
    Dim rsResults__MMColParam
    rsResults__MMColParam = "1"
    If (Request("yscon") <> "") Then
    rsResults__MMColParam = Request("yscon")
    End If
    %>
    <%
    Dim rsResults__ysbed
    rsResults__ysbed = "1"
    If (Request("ysbed") <> "") Then
    rsResults__ysbed = Request("ysbed")
    End If
    %>
    <%
    Dim rsResults__MMColParam3
    rsResults__MMColParam3 = "xyz"
    If (Request("type") <> "") Then
    rsResults__MMColParam3 = Request("type")
    End If
    %>
    <%
    Dim rsResults
    Dim rsResults_numRows
    Set rsResults = Server.CreateObject("ADODB.Recordset")
    rsResults.ActiveConnection = MM_YotShop6_STRING
    rsResults.Source = "SELECT * FROM YotStock WHERE Area LIKE '"
    +
    Replace(rsResults__MMColParam, "'", "''") + "' AND bedrooms
    LIKE '" +
    Replace(rsResults__ysbed, "'", "''") + "' AND type LIKE '" +
    Replace(rsResults__MMColParam3, "'", "''") + "' ORDER BY
    price ASC"
    rsResults.CursorType = 0
    rsResults.CursorLocation = 2
    rsResults.LockType = 1
    rsResults.Open()
    rsResults_numRows = 0
    %>
    "Julian Roberts" <[email protected]> wrote in message
    news:euj4if$ici$[email protected]..
    >>> Use Request instead of Request.Form for runtime
    parameters.
    >
    > You haven't done it :)
    >
    > --
    > Jules
    >
    http://www.charon.co.uk/charoncart
    > Charon Cart 3
    > Shopping Cart Extension for Dreamweaver MX/MX 2004
    >
    >
    >
    >

  • How to move to next record in PHP+ORACLE env

    I install php3 +ORACLE in RH linux 6 box, the works fine.
    I write a app to browse record in oracle table,I write two
    frame, one top_frame,one body_frame,but How can I to move to
    next record?
    thanks any idea!!
    null

    one record item at a time...

  • Find a specific record in a recordgroup

    I am building a recordgroup at runtime of IDNum and Name. (Basically key-value pairs)
    I'm able to build the recordgroup. But how do I find a specific record to get a Name value if I have an IDNum?
    I know I can just do this with a temp table, but I was trying to do it this way....

    Hello,
    Use the Get_Group_Record_Number() to retrieve the desired row in the record group (see the on-line documentation).
    Francois

  • When I send mi presentation to a Quick Movie, the program record only the last frame

    Why when I send mi presentation to a Quick Movie, the program record only the last frame, how I do to record the whole presentation of 52 frames

    I mean when I try to burn a CD.

Maybe you are looking for

  • My adobe flash record works on Internet Ex. won't work on FFox???

    I switched from Internet Explorer to Firefox. I have the latest version of Adobe Flash that's needed to view youtube. I can still watch it on Internet Explorer but can't get it to work on Firefox. I'm told I have to download the program I already hav

  • Apply different font styles in single text frame

    hi all how can i apply different font styles in a single text frame using indesign script ? for example : "dasdnasndasndlasndnasdlasdasdas" may i know is it possible to do that and how to do that ? thanks

  • DB Connect

    I am trying to create a connection to DB2 tables via DC Connect.  If I select the Create... option it asks for three parameters which are selected from Picklists: Logical System Name Source System Name Type and Release From what transaction do I set

  • Sales Order Error No customer master record exists for sold-to party

    Hi, I am trying to create a sales order in IDES. Unfortunately it is showing me error: No Customer master exists for sold to party. Now I have already checked my assignments, combined sales area in vor1 and vor2. Checked PDP ( In PDP I have creates p

  • Expert printing advice needed!

    OK - Color Management sucks - I have a calibrated monitor with D65, Gamma 2.2. I use Solex Task lamp to review/proof prints. I print on a HP B9180 from LR v1.1 on OSX. I have produced excellent prints on occasions and it looks great on a few select p