MySQL searching

This is a discussion on MySQL searching within the PHP Language forums, part of the PHP Programming Forums category; Hi Guys I have to do a very intensive and accurate database search using PHP nad MySQL. I was wondering ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-11-2005
willl69
 
Posts: n/a
Default 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

Reply With Quote
  #2 (permalink)  
Old 01-11-2005
News Me
 
Posts: n/a
Default Re: MySQL searching

willl69 wrote:
> 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
>


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=Artist.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

Reply With Quote
  #3 (permalink)  
Old 01-11-2005
Rutger Claes
 
Posts: n/a
Default Re: MySQL searching

willl69 wrote:

> 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


The mysql online manual
http://dev.mysql.com/doc/mysql/en/Fulltext_Search.html

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

Reply With Quote
  #4 (permalink)  
Old 01-11-2005
Ronald Chaplin
 
Posts: n/a
Default Re: MySQL searching

willl69 wrote:
> 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
>

Here you go.
http://www.analysisandsolutions.com/code/mybasic.htm
http://dev.mysql.com/doc/mysql/en/Tutorial.html
http://www.freewebmasterhelp.com/tutorials/phpmysql Part 1
http://www.freewebmasterhelp.com/tutorials/phpmysql/2 Part 2
http://www.createafreewebsite.net/ph...roduction.html

There's plenty more if you google for MySQL Tutorial.
HTH
--
Ron Chaplin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
T73 Software & Design
www.t73-softdesign.com
To provide custom and quality
software, designs and services,
to our customers, at an affordable rate,
with minimal delay.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:01 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0