MySQL searching

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • willl69

    MySQL searching

    Hi Guys

    I have to do a very intensive and accurate database search using PHP nad
    MySQL. I was wondering if anyone knew any good resources or where i could
    get examples of good queries for a fulltext indexed database search.

    Cheers

    Willl

  • News Me

    #2
    Re: MySQL searching

    willl69 wrote:[color=blue]
    > Hi Guys
    >
    > I have to do a very intensive and accurate database search using PHP nad
    > MySQL. I was wondering if anyone knew any good resources or where i could
    > get examples of good queries for a fulltext indexed database search.
    >
    > Cheers
    >
    > Willl
    >[/color]

    Here's one of my favorites:

    SELECT
    Artist.Name AS 'Artist',
    Artist.AddThe AS 'ArtistAddThe',
    Artist.RecId AS 'ArtistRecId',
    Disc.Title AS 'Disc',
    Disc.AddThe AS 'DiscAddThe',
    Disc.RecId AS 'DiscRecId',
    Track.Title AS 'Title',
    Track.AddThe AS 'TrackAddThe',
    Track.RecId AS 'TrackRecId',
    Track.Number AS 'Track'
    FROM Artist,
    INNER JOIN Disc ON Disc.Artist=Art ist.RecId
    INNER JOIN Track ON Track.Disc=Disc .RecId
    WHERE
    Artist.Name LIKE '$search_artist '
    AND
    Disc.Title LIKE '$search_disc'
    AND
    Track.Title LIKE '$search_track'
    ORDER BY
    Artist,
    Disc.Year,
    Disc,
    Track

    Comment

    • Rutger Claes

      #3
      Re: MySQL searching

      willl69 wrote:
      [color=blue]
      > Hi Guys
      >
      > I have to do a very intensive and accurate database search using PHP nad
      > MySQL. I was wondering if anyone knew any good resources or where i could
      > get examples of good queries for a fulltext indexed database search.
      >
      > Cheers
      >
      > Willl[/color]

      The mysql online manual


      Rutger
      --
      Rutger Claes rgc@rgc.tld
      Replace tld with top level domain of belgium to contact me pgp:0x3B7D6BD6
      Do not reply to the from address. It's read by /dev/null and sa-learn only

      Comment

      • Ronald Chaplin

        #4
        Re: MySQL searching

        willl69 wrote:[color=blue]
        > Hi Guys
        >
        > I have to do a very intensive and accurate database search using PHP nad
        > MySQL. I was wondering if anyone knew any good resources or where i could
        > get examples of good queries for a fulltext indexed database search.
        >
        > Cheers
        >
        > Willl
        >[/color]
        Here you go.
        Step-by-step MySQL installation (and upgrade) tutorial for Windows. SQL commands for creating databases. Tips for fixing error messages.


        http://www.freewebmasterhelp.com/tutorials/phpmysql Part 1
        http://www.freewebmasterhelp.com/tutorials/phpmysql/2 Part 2
        Learn to create a MySQL database on your PC and Export it to your web hosting account. Includes installing the Apache server.


        There's plenty more if you google for MySQL Tutorial.
        HTH
        --
        Ron Chaplin
        =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
        T73 Software & Design

        To provide custom and quality
        software, designs and services,
        to our customers, at an affordable rate,
        with minimal delay.

        Comment

        Working...