Tiny searching problem....please help!

Discussion in 'PHP' started by pangea, Mar 20, 2007.

  1. #1
    Hi,

    I have this code (which I know has the wrong use of the operator BETWEEN)

    It is the 'filtering' of the MySQL data based on a search form.

    Please could someone let me know of how to use greater than/less than and/or BETWEEN in this case for the number of bedrooms. If I were to use BETWEEN, I would need to specify a high value so no-one would search above it.

    Thanks,

    Paul
     
    pangea, Mar 20, 2007 IP
  2. pangea

    pangea Guest

    Messages:
    557
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i thought that the >= operators woulod work, but it doesnt!!
     
    pangea, Mar 20, 2007 IP
  3. pangea

    pangea Guest

    Messages:
    557
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    would it be easier if i had a field that was for the minimum and maximum number of bedrooms, and then used BETWEEN to search between them.
     
    pangea, Mar 21, 2007 IP