I have a sorted array in descending order such as with values 100 , 98, 96, 90 …. and I am using foreach() loop to iterate over the array and use if condition with limit 3 such as ` to get top 3 positions. but the problem is that if there exist two same values such as 100 , 98,
Tag: codeigniter
PHP Codeigniter Session error: Message: session_cache_limiter(): Cannot change cache limiter when session is active
php -v:7.3.11 codeigniter -v:3.0.3 A PHP Error was encountered Severity: Warning Message: session_cache_limiter(): Cannot change cache limiter when session is active Filename: core/MY_Controller….
Deprecated each in code igniter xssclean helper
I have a codeigniter helper called xssclean for input validating form data If i give array it show each deprecated error. Here is my function in my xssclean_helper.php function xssclean($str) { if (…
Export and download my php table data to csv
I’m trying to get my datbase fetched data to Excel file for downloading it in execl or csv, but I’m having problems with exporting and also No datas are fetching to the csv .Here is my code: This is …
SCSS Not working in my view [Code igniter]
My SCSS code is not working in my code igniter project : $custom-file-text: ( en: “Browse”, es: “Elegir” );
Php: Set header for cookie attribute SameSite=None;Secure is not working at all
I know there is many solutions given regarding the same question but I tried all of them and none of them working at all. I am tried following ways but none of them worked. My php version is 7.1 and Codeigniter framework I am using. By setting header in index.php header(‘Set-Cookie: HttpOnly; SameSite=None;Secure’); By setting in .htaccess Header edit Set-Cookie
Capturing groups in string using preg_match
I got in trouble parsing a text file in codeigniter, for each line in file I need to capture groups data…the data are: – progressive number – operator – manufacturer – model – registration – type …
Different pages on same domain show different cookies (by target domain)
I have a Single Sign On implementation that adds cookies to a website when people login. I see the cookie in the chrome Inspector when looking at one page, but not in another page on the same domain. …
CodeIgniter: Query grouping and Looking for Specific Data
First of all I am new with CodeIgniter and still in the process of learning. I have created an app on React Native that selects date and time to create an appointment. I am using CodeIgniter as my …
sql_mode=only_full_group_by
Im trying to help someone to implement new function on his code; but I have this error Unfortunately if change the SQL_mode the request doesn’t work. ( really strange because this code works on the server ). If you have any idea. Even if with the documentation of SQL I can find the solution to modify this request. Thanks a