Jump to content

Recommended Posts

I have a table called "test_table" with a few columns.... id, name, description, author

 

I made name and description FULLTEXT fields so i could use MATCH AGINST searching with them

 

i inserted multiple rows with random content, and one row with a name of php.net and description of "has lots of php stuff"

 

here's my query:

$res = mysql_query("SELECT *, MATCH(description, name) AGAINST('php') AS score FROM 
test_table WHERE MATCH(description, name) AGAINST('php') ORDER BY SCORE DESC")or die(mysql_error());

echo mysql_num_rows($res);

 

theres no errors. And its echoing a zero.

 

Whats up? Any ideas?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/156983-query-stuff/
Share on other sites

Please do not bump after an hour. Perhaps if you took care and posted this in the MySQL forum you would of had your questioned answered by the MySQL gurus who tend to only browse that forum.

 

Moving to MySQL forum.

 

Edit:

Sorry about the bump remarks, long day. Still the same goes, take care to choose the right forum for the topic. That is most likely why this has gone unanswered like it has.

Link to comment
https://forums.phpfreaks.com/topic/156983-query-stuff/#findComment-828033
Share on other sites

Please do not bump after an hour. Perhaps if you took care and posted this in the MySQL forum you would of had your questioned answered by the MySQL gurus who tend to only browse that forum.

 

Moving to MySQL forum.

Uh... check you time math premiso. I know you are good at it with your parentheses. :)

Link to comment
https://forums.phpfreaks.com/topic/156983-query-stuff/#findComment-828035
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.