Results 1 to 2 of 2

Thread: How to search data from A until C ?

  1. #1
    Join Date
    Sep 2008
    Location
    Indonesia
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to search data from A until C ?

    Sorry if so many errors in grammar.
    I am new in MySQL so I have a problem in searching data from MySQL.
    I want to know how to search data if I want to search data from A until C ?
    I have used 'LIKE' but it just showing data which have A and C in the front,inside and behind the word.
    Please, help me. Thank you.
    Last edited by jkdevil; 09-13-2008 at 05:13 PM. Reason: I misstyping a word.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    One way to do this is to just do 3 searches, one for A, one for B, and one for C.
    You could look into OR statements in MySQL, also. (LIKE A OR LIKE B OR LIKE C). But I'm not sure how that works.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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