Search db from one page

On my php page, I have a simple form with one textbox. Once
submitted the search results page will load with recordset
information based on the URL Parameter of the search textbox.
It works great if I filter the recordset by one value, say
username...
However, I would like to be able to search not just by one
field on my search page.
I would like another form on the search page:
Form 1: Search by username (this is what I had done aleady)
Form 2: Search by last name
How can I add another form that will use the same results
pages? Do I need to make another results page just for that form?!
I plan on building off of the results page with update record
behaviors, to name one.
What if I even decide to add another search form on the
search page?
What's the best way to go about this?
Thanks!!!!!

I now have one form with a few textboxes on them, each with
their own textfield name: username, lastname, user_ID...
On my search page I created a recordset with 3 colname
variables, their run-time values are $_GET['username'],
$_GET['lastname'], $_GET['user_ID']
My sql is: SELECT *
FROM members
WHERE username = colname or last = colname2 or user_ID =
colname3
This will allow me to search from the seach page assuming I
only have one textbox with information typed into it. It does work,
and I like that idea.
However, how can I modify this to search this way, and to
also search from any other textfields that are entered. So, search
by lastname (if typed in search box) and by username (if typed into
the search box)?
So only use the information that is typed into the search box
as part of the query.

Similar Messages

  • Pass parameter from one page to another

    Hi,
    I have 2 pages:
    - the welcome page with a combo box P101_OLD (list of values) with a submit button wh'os opening the 2nd page with that region source:
    select
    "ID",
    "ID_POSTE",
    "PERIODE_ID",
    "ADMIS",
    "INSCRITS_RAMQ",
    "INSCRITS_AUTRES",
    "ENREGISTRÉS",
    "VENDUS",
    "AUTRES",
    "COMMENTAIRES",
    "DESCRIPTIONOLD",
    "VOLUME"
    from "#OWNER#"."STATISTIQUES"
    where instr(':'||:P101_OLD||':',':'||STATISTIQUES.DESCRIPTIONOLD||':') > 0
    What's wrong ? How to pass a variable from one page to another?
    Thanks

    are you submitting the form once they click on the combo box? or use select list with submit.
    I have a form with a drop down say for names. after selecting a value I have to click the search button (basically it submits the page and redirects to page 2)
    unless we save the state of the combo box, it won't retrieve a value in page 2
    in page 2 all I had to do was refer to the page 1 field name :P3_TEST

  • How do I copy and paste from one page or file to another page or file - on the same screen?

    How do I copy and paste from one page or file to another - on the same screen?

      Open both of your images in the Editor. Click on the image you want to copy and press Ctrtl+A (select all) followed by Ctrl+C (copy) then click the tab for your other image and press Ctrl+V (paste)
    Alternatively click on your background image then simply drag the second image from the photo/project bin and drop it into the main editor workspace on top of the background image. Use the move tool to position and the corner handles of the bounding box to scale.

  • When switching from one page to another, browser timeouts and have to refresh

    I know I am antiquated, however, I have dial up still. I have never had this problem until recently. When going from one page (even in email) the browser does not load and I have to refresh or it will sit there giving no error and doing nothing. Resetting fire fox does not work.

    Check the connection settings.
    *Tools > Options > Advanced > Network : Connection > Settings
    *https://support.mozilla.org/kb/Options+window+-+Advanced+panel
    If you do not need to use a proxy to connect to internet then try to select "No Proxy" if "Use the system proxy settings" or one of the others do not work properly.
    See "Firefox connection settings":
    *https://support.mozilla.org/kb/Firefox+cannot+load+websites+but+other+programs+can
    You can also try to disable IPv6
    *http://kb.mozillazine.org/Error_loading_websites
    You can try to reset (power off/on) the router.
    You can check the Network tab in the Web Console (Firefox/Tools > Web Developer;Ctrl+Shift+K) to see if that gives any clues about the cause.<br />
    You can click an entry to see the response headers and check the Timings tab in the right pane.
    *https://developer.mozilla.org/en/Tools/Web_Console
    Note that your System Details List shows that you have a user.js file in the profile folder to initialize some prefs on each start of Firefox.
    The user.js file is only present if you or other software has created it, so normally it wouldn't be there.
    you can check its content with a plain text editor if you didn't create this file yourself.
    The user.js file is read each time you start Firefox and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    *http://kb.mozillazine.org/Preferences_not_saved

  • How do i move an app from one page to another

    how do i move an app from one page to another? When I upgraded to the latest software on my 4s, the camera went to the last page rather than remaining on the home page

    What Rudegar says is true, but it's a lot easier to rearrange icons in iTunes:
    Connect your phone and open iTunes. 
    Click on the Apps tab. 
    You will see your home screen in the main window, with the other screens in a scrollable column on the right. Scroll down and click on the last page to put it in main window. 
    Now scroll the column so the home page is visible on the right.
    Click on the Camera and drag it onto the home page at the right. 
    Be careful not to accidentally insert it into another app, thereby creating a group.

  • How do I move apps from one page to another?

    How do I move apps from one page to another?

    From a previous thread:
    Touch and hold any icon for a couple of seconds. They'll all start to wobble. Touch and drag the one you want to move to the side of the screen and the next screen will appear; drop the icon on whatever screen you want it on.
    You can also do it quicker in iTunes - connect the phone and click the Apps tab in the main window. You'll see a picture of your phone with the apps laid out. Just click and drag

  • How do you move icons from one page to another?

    How do you move icons from one page to another?

    hold down on an app till everything start shaking then move it to one side of the ipad and it'll change "pages" after a second or two.

  • How do I get text to flow from one page to the next in Pages 5?

    How do I get text to flow from one page to the next in Pages 5 with the Maverick system?

    What may be overlooked in Pages v5 is the notion of combining Text Boxes via the Menu > View > Show Arrange Tools. When you select two Text Boxes, an extra panel unfolds at the bottom of the Arrange Tools window. Uncheck one Text Box and this panel abruptly disappears.
    One can achieve text flow effects between Text Boxes differently based on how one positions the Text Box overlap, and choice of effect above. Though not the accustomed flow found in Pages ’09 v4.3, flow does occur. Consider the possibilities of combining a Shape and a Text box to cut an irregular Text box.
    If I create two Text Boxes and position them side by side with outline touching and choose Unite, this creates one larger Text Box and text flows across and down. On the otherhand, if I overlap the upper left corner of a lower Text Box over one above and to the left, then choose Union, pasted text fills the first Text Box and then flows across and down into the other box. Here is a Union example:
    Intersect will leave a small Text Box where the two overlap, so not much value there. Subtract will cut a chunk out of one Text Box that is the size of the overlapping piece of the second Text Box:
    And Intersect will leave an island in the center where the two Text Box overlap, with flow jumping over this bridge.
    Clearly, this is not what we were accustomed to in the past, but with imagination, style, and layout tuning, it does offer alternative Text Box creativity and layout. Of course, there is the option of simply returning to the previous Pages version for true Text Box linking that most will want to use.

  • How do I move an app icon from one page to another?

    I would like to organize my Ipad2 but can figure out how to move the app icon from one page to another.

    Tap and hold down on an app icon until it wiggles. Then hold down on the icon and drag it about halfway over to the next screen and just hold it there for a second or two and the app will jump to the next page. Do it slowly and just hold the app on the edge of the screen. Don't try to drag it over quickly. It takes a little practice.
    Tap the home button when you are done and the apps will stop wiggling.

  • I have three "pages" of apps, not all of which are full.  How do I move an app from one page to another to consolidate?

    I have three pages of apps, not all of which are full.  How do I move apps from one page to another to have full pages?

    Hook your iPad up to your computer and iTunes and move them from within iTunes.
    Or
    Hold down on one of  your apps until they all start to wiggle. Then hold down on the ones you want to move and drag them on the screen. Drag them to the middle left to move them left,(such as from page 2 to page one) middle right ot move them right,(from page 2 to page 3) rearrange as you want.
    When you're done, tap the home key and everything should stop wiggling.

  • How do I copy a page from one Pages document to another using Pages 5.0?

    I posted this question on another page, and haven't recieved an answer to it yet. However I have found a temporary solution, so I am posting this here in case anyone else has a similar problem.
    The issue here is that I have just upgraded from Snow Leopard to Maverick (10.9.1), and my Pages also upgraded (to 5.0.1), altering my Pages documents. This is the issue, as as far as I can see the new Pages does not offer some of the basic needs that the old Pages did! In other words it is worse than the previous version.
    Using the upgraded new Pages 5.0.1 seems to result in some major editing problems for me. If you upgrade, make sure you KEEP the old version of Pages 09 (v 4.3). That is what has saved me!  If you have the same problems I have had - explained below, you will still be able to close the new version and open your Pages document in the old version, provided it is not a new Pages document. If it is, it will be possible to export it as a Pages 09 document and edit properly.
    After upgrading to the new Pages 5.0.1, when I open documents in Pages and try and copy a section from one document to another (easy before using the thumbnails) many of the Menu items previously available are visible but appear faded and are not possible, including Insert>Section Break/Page Break/Page Number and Edit>Cut/Copy/Delete/Undo/Redo
    This even happens if I duplicate the Pages document and try and do any of these from the Duplicate (which should be an easily editable copy).
    My solution has been to simply open all Pages documents that Iwant to edit (or may want to edit in future) in the old Pages app (v 4.3), which I never got rid of. That has meant I can continue editing and copying a section (of 1 or more pages) from one Pages document to another.
    If anyone reading this has figured out a way to edit Pages documents using the new version 5.0.1 please post an explanation, and I will try it!

    And there are those who don't like me repeating the same message over and over again in this forum!
    Apple has removed over 90 features from Pages 5.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5, after Exporting your files to Pages '09, and rate/review it in the App Store, then get back to work.
    Peter

  • Copy a page from one page group to another

    Hi
    Is it possible to copy a page from one page group to another?
    Regards,
    Lene

    Hi ,
    Through Portal it is not possible to copy a page from one page group to another .
    There is a feature in Portal WebDav .
    Through a DAV client you can copy page to your local system as a folder and then drag the page to the pagegroup you want to copy .
    Regards
    Medini

  • Moving Pages from one Page Group to Another Group

    Hello,
    How do you move pages, styles, or items from one page group to another page group?
    On the same machine, I have three page groups called Production, Acceptance, and Test. Once I set up a page that I like on the page group Test, what is the best way to move the page(and its items, portlets,etc) to the page group Acceptance, and then move it into Production?
    Also, how does security and approvals affect this? There is only limited amount of people that are able to get into the Test Page Group, or Acceptance Page Group. Would any copying process make sure the page approvers be copied across correctly? Or will manual intervention be needed.
    I'm using Oracle Portal Release 2 (9.0.2) running on a solaris machine.
    Much thanks for your assistance.
    Anson

    hi There,
    As far as i know, the pages can only be moved within the page group but not from one page group to another page group.
    Regards,
    Deepak

  • Copying page from one page group to another

    I need to copy one page or multiple from one page group DEV to page group TEST. I thought of using Portal Export/Import feature for the same, but it will ask for same page group at import.
    Requirement is to keep one set of page group for DEV stage, when it got completed move it to TEST page group in same instance.
    How we can achieve this functionality using single portal instance?
    Thanks & regards,
    Preet

    I did not understand this and isn't working for me. :(
    The message I receive when I click on the Copy link on the Navigator is:
    Click "Copy Here" next to the page under which you want to create a copy of your page. Click the link next to the page group to create the copy under the root page of the page group. You can create a copy of a page only under a page in the same page group as the original page.
    And it only displays the current page group with a tree structure of all the pages in the current page group (page group name being the root).
    Please help me on this as I have a similar requirement and am using 10.1.2 version of Oracle Portal.

  • Need help in passing data from one page to other page in oaf

    Dear All,
    I have a requirement as below.
    I am doing some selection in one page and populating the data in another page table region, next time when i am selecting another row and pressing the button i need to display the previous row as well as new row, how can i achieve this, currently i am able to see only the first row what i selected first.
    Ex: 1 st scenario: after passing the selected data from one page to base page the data looks like below in base page.
    1 test desc
    2nd scenarios: when i am again selcting data and passing to the base page it should be like that
    1 test desc
    2 test desc
    but currently it is showing
    1 test desc only for the 2nd case, can any one please help me on thsi , its little bit urgent
    Thnaks

    How are you passing the values to the base page? Are you using setting the retainAM parameter to true while doing a forward.

Maybe you are looking for

  • My MyDaq is not accepting the serial number it came with

    I had to format my computer and am trying to reinstall the software. I have the CD and the MyDaq unit but not the Box. This installation process is rejecting the serial number on the unit. My unit has a ###A##A format serial number where A is a lette

  • Working in Firefox/Chrome not in IE

    Thanks for everyone's help in advance. I am attempting to implement a tab drop down onmouseover menu and it works decently in FireFox and Chrome but it does not work with IE 8. The sublist is being shown by on page load in IE but not the others and i

  • Display Issues on Early 2011 Macbook Pro

    I am currently experiencing an undocumented problem for my 15 inch Macbook Pro (Early 2011 Version), and was hoping to get some help diagnosing what the issue might be. Lately, it seems that whenever I am doing anything that is computationally expens

  • How can i turn off faces in iPhoto 11´?. I can´t not ignore this!

    Hello People. How can i turn off faces in Iphoto? This features annoys me slowly! Please Help ! Thank you Rompehuesos

  • Using a Non-valuated, non-stock material in an STO

    Created a planning material with UNBW material type in ECC 6 to use to help manage shipping capacity at the mill.  Added to a sales order and it decremented the plan as expected. Half of the mill's deliveries are STO's so now trying to get this to wo