Results 1 to 3 of 3

Thread: PHP Help

  1. #1
    Join Date
    Apr 2002
    Posts
    1

    Unanswered: PHP Help

    How can I make a search form for PHP, when i am trying to get info from a MySQL Database. SO i want to be able to search anything in the base. But i also want 2 pulldown menus that i can choose something from the MySQL Database. So in that case it will open up a page, for my info that will come up. PLease Help, THanks

  2. #2
    Join Date
    Nov 2001
    Posts
    12
    Create your sql query string in code, based on users selection in form

    SQL="SELECT * FROM MYTABLE WHERE " . $STRING ;

    -Petri-

  3. #3
    Join Date
    Jun 2002
    Posts
    13
    I agree, and if you have two drop down menus corresponding with the database, use:

    "SELECT * FROM blah WHERE field1 = $pulldownValue1 AND field2 = $pulldownValue2;"

    Jeremy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •