Btiteam / XBTIT Forum

xbtit => XBTIT Support => Topic started by: NinXx on February 20, 2018, 03:23:27 am

Title: Search error
Post by: NinXx on February 20, 2018, 03:23:27 am
Hi guys,

XBTIT 2.5.4, no hacks.
I have little trouble here with search torrent.
How can i fix this, please? Ty


Title: Re: Search error
Post by: NinXx on February 20, 2018, 06:21:21 pm
Any idea? I try clean install - same problem. All file permission is right. I use MySql 5.7
If i try in clean install search any torrent, nothing happend. If i write 2 words to the search input, get mysql error  :o
Title: Re: Search error
Post by: Frankiez on July 03, 2018, 06:38:30 am
What is the most important content within this forum? I want to know the source.
Title: Re: Search error
Post by: DopeT on July 06, 2018, 01:40:15 am
this is what i did in torrents.php and the search seems to work ok.
i changed this line  (115 in my script):
Code: [Select]
$query_select .= " filename LIKE '%" .  mysqli_query($GLOBALS['conn'],$testocercato[$k]) . "%'";
to this:
Code: [Select]
$query_select .= " filename LIKE '%" . $testocercato[$k] . "%'";
make a backup just in case. Looks like $testocercato array already holds the strings you just need to loop trough them.
I just notice this is from February but hey maybe will help someone else.