how to repair this error then translating from eglish to hebrew :

Discussion in 'Programming' started by someone100, Nov 5, 2008.

  1. #1
    i use phpas script .

    what is this error say ? because i happen then i chaged all my data to utf-8 in the data base and translated it to hebrew !!!



    
    
    if (!($limit)){
    $limit = $max_results;} // Default results per-page.
    if (!($page)){
    $page = 0;} // Default page value.
    if (!$searchterm)
    $sql_query = "SELECT * from games WHERE gamestatus = 1 $browseby";
    else
    $sql_query = "SELECT * from games WHERE gamestatus = 1 AND (gametitle LIKE \"%$searchterm%\" OR gamedesc LIKE  \"%$searchterm%\" OR gamekeywords LIKE \"%$searchterm%\" OR instructions LIKE \"%$searchterm%\" OR gamefile LIKE \"%$searchterm%\")";
    $numresults = mysql_query($sql_query); // the query.
    $numrows = mysql_num_rows($numresults); // Number of rows returned from above query.
    // here line 66
    if (!empty($searchterm)){
    // LOG SEARCH RESULTS
          $searchterm2 = strtolower($searchterm);
     
          $now = time();
    
    PHP:

     
    someone100, Nov 5, 2008 IP
  2. someone100

    someone100 Peon

    Messages:
    171
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    anyone ???
    are you saying that is no solution for this ?



    :confused::confused::confused:
     
    someone100, Nov 5, 2008 IP
  3. dev_SeeInside

    dev_SeeInside Peon

    Messages:
    45
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    something's wrong with the SQL query that's running. My guess is this line:

    $sql_query = "SELECT * from games WHERE gamestatus = 1 $browseby";

    Looks like you need an ORDER BY in there...

    $sql_query = "SELECT * from games WHERE gamestatus = 1 ORDER BY $browseby";

    Although I have no idea what's in the $browseby var.
     
    dev_SeeInside, Nov 5, 2008 IP
  4. someone100

    someone100 Peon

    Messages:
    171
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks . but in english it works . it should be something else .
     
    someone100, Nov 5, 2008 IP
  5. dev_SeeInside

    dev_SeeInside Peon

    Messages:
    45
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    dev_SeeInside, Nov 5, 2008 IP
  6. someone100

    someone100 Peon

    Messages:
    171
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks . it is not it.
     
    someone100, Nov 6, 2008 IP