SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Search me

Hybrid View

  1. #1
    SitePoint Zealot vodica's Avatar
    Join Date
    Jul 2001
    Location
    SLovenia
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Search me

    Hello!

    Does anyone know what kind of Sql statment you need to have a search?
    is it where fifi='$fifi' or something like this?

    How can you also limit your search to let's say 10 results per page? Can you do this?
    Also, can you display only 5 counts of results (on the whole page) let's say for example, one has a forum and would like to see the latest 5 queries? How?

    Thank you guyz!

    while(true) sheep++;

  2. #2
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll attempt to answer one of your question..to limit the numbr of return results for your query...use

    LIMIT $offset,$limit,

    in your query call.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein


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
  •