Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How validate form like this ...
Post: How validate form like this ...

I have form with two types: 1) id, kind (worker), comment 2) id, kind (manager), comment, salary, action I have list workers and managers in this form, how i can validate all of them, but when ...
108 Views
0 Replies
02-14-2024, 12:35 AM
motoroller
    Thread: Full Logs text
Post: Full Logs text

#0 vendor/codeigniter4/framework/system/Database/MySQLi/Connection.php(306): mysqli->query('INSERT INTO `of...', 0) #1 vendor/codeigniter4/framework/system/Database/BaseConnection.php(693): CodeIgnit...
159 Views
1 Replies
01-11-2024, 01:32 AM
motoroller
    Thread: How validate this rules
Post: How validate this rules

I have form, if checkbox in my form (print) is checked (has value 'yes') i need validate email, if not dont validate My rules like that 'print' => [ 'label' => ' ', ...
91 Views
0 Replies
12-26-2023, 01:06 AM
motoroller
    Thread: Return Data From Form Validation
Post: Return Data From Form Validation

Hello everybody, i have o lot routines task, like check id element in Database in form validation i can use is_unique or is_not_unique depeneds on my tasks But most of the times after validation i nee...
120 Views
0 Replies
12-17-2023, 12:32 AM
motoroller
    Thread: Got error ERROR - 16:13:22 09-12-2023 --> Session: Error while trying to free lock fo
Post: RE: Got error ERROR - 16:13:22 09-12-2023 --> Sess...

kenjis Wrote: (12-09-2023, 04:44 PM) -- It may be this bug. https://github.com/codeigniter4/CodeIgniter4/issues/4391 Can you fix it? -- I can`t any way i will create request
252 Views
3 Replies
12-11-2023, 12:29 AM
motoroller
    Thread: Got error ERROR - 16:13:22 09-12-2023 --> Session: Error while trying to free lock fo
Post: Got error ERROR - 16:13:22 09-12-2023 --> Session:...

Sometimes i got ERROR - 16:13:22 09-12-2023 --> Session: Error while trying to free lock for ci_session:ci_session:b3f0b64cfb4da08dad6bc2227864e0c86626e858:lock I use redis for storage session, how...
252 Views
3 Replies
12-09-2023, 09:19 AM
motoroller
    Thread: Problem with filters
Post: Problem with filters

Hello everyone, i use few filters in project, one global and one in some routers In Config/Filters i have global PHP Code: -- public array $globals = [         'before' => [             '...
236 Views
1 Replies
09-14-2023, 02:21 PM
motoroller
    Thread: How rules works?
Post: How rules works?

please explain how its works if_exist? What difference permit_empty?
217 Views
1 Replies
08-25-2023, 01:13 AM
motoroller
    Thread: Get data in type from DB
Post: RE: Get data in type from DB

iRedds Wrote: (03-24-2023, 02:58 AM) -- Type conversion depends on the capabilities of the DBMS driver. As far as I know, only mysql native driver (mysqlnd) can provide data types from the database....
1,741 Views
3 Replies
03-24-2023, 11:31 AM
motoroller
    Thread: Get data in type from DB
Post: Get data in type from DB

class Wages { protected BaseConnection $db; public function __construct() { $this->db = Database::connect(); } public function get (): array { return $thi...
1,741 Views
3 Replies
03-24-2023, 01:40 AM
motoroller
    Thread: CI save Errors
Post: CI save Errors

On my server i have production mode, while i get error, it comes to logs, but most of all details of array is very poor (instead array i have ... etc) is any way to save extended logs with errors?
259 Views
0 Replies
03-24-2023, 12:54 AM
motoroller
    Thread: Get data in type from DB
Post: Get data in type from DB

+-------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------+--------------+------+-----+---------+----------------+ | ...
394 Views
1 Replies
01-26-2023, 01:27 PM
motoroller
    Thread: Active Record Full text search
Post: Active Record Full text search

How implement full text search?
332 Views
0 Replies
01-18-2023, 05:30 AM
motoroller
    Thread: Create subquery in WHERE
Post: Create subquery in WHERE

I have subquery like this its working, how i can rewrite with active record? $builder->where("(SELECT SUM(sum) FROM payments WHERE visit = v.id) > 0"); Like this $SubQuery = $this->db->tab...
466 Views
1 Replies
01-18-2023, 03:42 AM
motoroller
    Thread: JOIN and variable
Post: JOIN and variable

Hello every one i need add external variarble to join safety, how to do it? $builder->join('users AS u', 'u.id = a.owner AND a.name like $var', 'left');
409 Views
1 Replies
01-18-2023, 03:16 AM
motoroller
    Thread: Form Validation
Post: Form Validation

I have updated to 4.3 My rules for price (float) 'price' => [ 'label' => ' ', 'rules' => 'required|numeric|greater_than[0]|less_than[1000000]' ], now i can`t pass greate...
420 Views
1 Replies
01-11-2023, 04:34 PM
motoroller
    Thread: SubQuery
Post: RE: SubQuery

michalsn Wrote: (01-10-2023, 11:50 AM) -- This is how you can handle subqueries: https://www.codeigniter.com/user_guide/database/query_builder.html#subqueries -- I have variable in subquery which i...
594 Views
2 Replies
01-10-2023, 01:35 PM
motoroller
    Thread: SubQuery
Post: SubQuery

How do this: $query = $this->db->table('catalog as C')->select(*) ->select('(SELECT `title` FROM `help_catalogs` WHERE `id` = c.parent) AS SubCatalogTitle')
594 Views
2 Replies
01-10-2023, 08:26 AM
motoroller
    Thread: Problem with PDF
Post: RE: Problem with PDF

Mni.day Wrote: (01-05-2023, 07:14 AM) -- Try Content-Disposition header -- $this->response->setHeader('Content-Type', 'application/pdf'); $this->response->setHeader('Content-Dispositio...
634 Views
2 Replies
01-05-2023, 08:35 AM
motoroller
    Thread: Problem with PDF
Post: Problem with PDF

I Use MPDF in CI3 thare no problem but with CI 4 next i do like this $this->response->setHeader('Content-Type', 'application/pdf'); $PDF->Output("File.pdf", 'I'); In Mozilla is ok, bu...
634 Views
2 Replies
01-05-2023, 03:27 AM
motoroller

Theme © iAndrew 2016 - Forum software by © MyBB