Search found 8 matches

by dhoechst
Mon Jun 27, 2005 7:05 pm
Forum: General discussions
Topic: Full text search for MS SQL Server
Replies: 10
Views: 11788

It looks like you aren't using the variable $string at all in the function &search in mssql.php. The only thing you've got that creates the where part of the SQL statement is here: foreach($cond as $field => $data) {

if (empty($where)) {

$where = $field." = '".addslashes($data)."'";

} else ...
by dhoechst
Mon Jun 27, 2005 6:15 pm
Forum: General discussions
Topic: Full text search for MS SQL Server
Replies: 10
Views: 11788

Almost got it - you've got a typo in the build of the SQL statement - in the where statement you have" faqdata.contents like". It should be "faqdata.content like". I changed this in functions.php and voila! It works!
by dhoechst
Mon Jun 27, 2005 6:05 pm
Forum: General discussions
Topic: Full text search for MS SQL Server
Replies: 10
Views: 11788

Hi,

this is the wrong search query:

SELECT faq.faqdata.id, faq.faqdata.lang, faq.faqcategoryrelations.category_id, faq.faqdata.thema, faq.faqdata.content FROM faq.faqdata LEFT JOIN faq.faqcategoryrelations ON faq.faqdata.id = faq.faqcategoryrelations.record_id AND faq.faqdata.lang = faq ...
by dhoechst
Mon Jun 27, 2005 5:48 pm
Forum: General discussions
Topic: Full text search for MS SQL Server
Replies: 10
Views: 11788

Still not quite right. It is looking in the keyword column three times now:

SELECT faq.faqdata.id, faq.faqdata.lang, faq.faqcategoryrelations.record_id, faq.faqdata.thema, faq.faqdata.content FROM faq.faqdata LEFT JOIN faq.faqcategoryrelations ON faq.faqdata.id = faq.faqcategoryrelations.record_id ...
by dhoechst
Mon Jun 27, 2005 4:19 pm
Forum: General discussions
Topic: Full text search for MS SQL Server
Replies: 10
Views: 11788

The search only uses the keywords. Here is the debug info for the search:


SELECT faq.faqdata.id, faq.faqdata.lang, faq.faqcategoryrelations.record_id, faq.faqdata.thema, faq.faqdata.content FROM faq.faqdata LEFT JOIN faq.faqcategoryrelations ON faq.faqdata.id = faq.faqcategoryrelations.record_id ...
by dhoechst
Fri Jun 24, 2005 5:25 pm
Forum: General discussions
Topic: Full text search for MS SQL Server
Replies: 10
Views: 11788

Full text search for MS SQL Server

Am I correct that if you use SQL Server, there isn't full text search capability? has anybody changed the code to try and get full text? I'd rather not have to type in keywords.

Thanks,
Daniel
by dhoechst
Fri Jun 24, 2005 5:20 pm
Forum: General discussions
Topic: MS SQL problems
Replies: 2
Views: 4685

problem is in function nextID in mssql.php

If you change the middle parameter of the mssql_result to 0, then it will return the correct value. 0 is the first row; 1, the second, etc. Since it is 1, it will try returning the second row which doesn't exist when you are doing the max function.
by dhoechst
Fri Jun 24, 2005 4:31 pm
Forum: General discussions
Topic: MS SQL problems
Replies: 2
Views: 4685

MS SQL problems

I have two things going on:

I downloaded the 1.5.0 RC4 version and installed it to work with mySQL on one computer. this one is working well. I took that same downloaded file and installed it on a different computer to work with SQL Server.

the first thing that I noticed after install was that the ...