#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    WI, USA
    Posts
    6
    Rep Power
    0
    I have a search result with a link which links to the ID# of the record. By clicking on the link I would like the rest of the record displayed. What will my script look like to pull a particular record ID?
    Hope this makes some kind of sense.

    Thanks


  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Grantham,Lincs, UK
    Posts
    7
    Rep Power
    0
    I think that I know what you are asking, I am a little new to it though.

    I have done something like this recently:

    function Show($ID)
    {
    $this->query("SELECT * FROM mytable WHERE ID = "$ID"");

    then:

    while ($this->next_record())
    {
    $Result .= $this->f("Field") . "<br>n";
    $Result .= $this->f("Field2") . "<br>n";

    }

    return $Result;

    As you may see I have built the HTML in the function as opposed to passing the data back in an array to the page and build it there. This is so if the show() is on many pages you can control the display method globally.

    mmm...does this make sense??

Similar Threads

  1. Replies: 7
    Last Post: February 16th, 2004, 02:55 PM
  2. next page for results / overflow result pages
    By virtualdub in forum PHP Development
    Replies: 3
    Last Post: February 5th, 2004, 04:15 PM
  3. passing array from page to page...
    By apek in forum PHP Development
    Replies: 3
    Last Post: January 30th, 2004, 02:47 PM
  4. how to get result page from FORM.
    By tommy916 in forum PHP Development
    Replies: 2
    Last Post: January 26th, 2004, 01:15 PM
  5. passing the url from HTML page to a php
    By lordorkus in forum PHP Development
    Replies: 10
    Last Post: January 20th, 2004, 05:36 PM

IMN logo majestic logo threadwatch logo seochat tools logo