Results 1 to 6 of 6

Thread: Advanced search error

  1. #1
    box33
    Guest

    Default Advanced search error

    Hi everyone have this problem aeDate 4.1IQ everything works searchs with single parameter searchs work ie ID Logon name but not advanced search this is what I get


    SELECT Profiles.ID, Headline, Country, Occupation, City, Sex, Sex2, ProfileType, NickName, Children, MerchantPrice, LEFT( DescriptionMe, 180 ) AS DescriptionMe, LEFT( DescriptionYou, 100 ) AS DescriptionYou, DateOfBirth, DateOfBirth2, Pic_0_addon, Sound, (LastNavTime > SUBDATE(NOW(), INTERVAL 5 MINUTE)) as is_onl FROM Profiles WHERE Status = 'Active' AND (LookingFor = 'male' OR LookingFor = 'both') AND (IF('female'='both' or 'female'='couple',1,Sex='female')) AND (IF('female'='couple',ProfileType='couple',Profile Type!='couple')) AND (TO_DAYS(DateOfBirth) BETWEEN TO_DAYS('1965-09-22') AND (TO_DAYS('1988-09-22')+1)) ORDER BY Priority DESC, Priority DESC, Profiles.LastLoggedIn DESC LIMIT -10, 10
    Error
    Database access error



    will appreciate any help.

    Thanx Logunn

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Check this thread:
    Search Results

    Fixed for 4.1.0 search_result.php, not sure what version you are using, but fix is similar:

    #Solution 1 Add this in line 486 (line number may differ in different patch releases)
    Code:
    if ( $real_first_p < 0 )
    {
    $real_first_p=0;
    }
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    box33
    Guest

    Default Advanced Search

    Thank Smoge pasted in and fixed the error but won, t bring up any search results just says

    No results found. Start again and try to broaden your search. I did have the quick search working fine but that has stopped the onlu search that works in ID or user name search.

    But thanks for your quick responce and help much appreciated

    Logunn

  4. #4
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    do you have approved (active) users?

    do their sex and lookingfor and lookingages match?

    If you only have a couple test users - put in more - 20 is a good number.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  5. #5
    dens611
    Guest

    Default Same error

    I have inserted more than 20 active users in database, however, I also get the same Error and the message is:

    No results found. Start again and try to broaden your search.

    Could you give me any idea?

    Thanks a lot.
    Last edited by dens611; 09-26-2006 at 03:19 AM.

  6. #6
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Ok - you should do this:

    A) examine the URL that gets created by search.php (and calls search_results.php) for errors.

    or

    B) echo the SQL statement that does the searching to the screen - so you can see what query is being run on the database.

    B is the most direct but it takes some php skill to get it to echo to the pages.

    ---

    Also - double check that your users profiles match up - that is, ages and looking ages, sexes and looking for sex.

    You can also try to do a search here on MMS for "search" and you will find several threads about this.

    We can also help you if needed - please contact me via PM to make arrangements.

    Rob
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Search Error
    By windy in forum Bugs and Fixes
    Replies: 0
    Last Post: 09-01-2007, 06:17 AM
  2. Zip search error
    By skyhawk85u in forum General Issues, Comments, Questions
    Replies: 1
    Last Post: 05-09-2007, 12:19 PM
  3. search and browse error
    By cg1 in forum General Troubleshooting
    Replies: 4
    Last Post: 04-21-2007, 12:20 PM
  4. Struggling for hours with Advanced Search
    By Smithp0 in forum General Troubleshooting
    Replies: 2
    Last Post: 10-06-2006, 12:40 PM
  5. Search Results error
    By lax33 in forum General Issues, Comments, Questions
    Replies: 3
    Last Post: 08-14-2006, 07:58 AM

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
  •