Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: help me write this mysql query in codeigniter
Post: RE: help me write this mysql query in codeigniter

PHP Code: -- Easiest way: $q = $this->db->query("SELECT *, ABS( post_code - 2015 ) AS distance FROM list_data WHERE business_name LIKE '%cash%' ESCAPE '!' ORDER BY distance LIMIT 6"); print_r($...
8,274 Views
10 Replies
11-12-2019, 09:27 AM
Piotr
    Thread: Form method file placement
Post: RE: Form method file placement

This is a pure php. Not a CI Controller and not CI Model
8,253 Views
6 Replies
06-28-2019, 03:06 PM
Piotr
    Thread: Window Modal does not work
Post: RE: Window Modal does not work

Instead of this Code: -- $('#myModal').modal(); -- you should use Code: -- $('#myModal').modal('show'); --
19,014 Views
18 Replies
06-16-2019, 07:43 AM
Piotr
    Thread: Global model
Post: Global model

Hello In CI3 i have one model that i have used as my main model (he holds all config, useful functions, there was html title of the page and other stuff) in any other model, controller or even view...
2,604 Views
1 Replies
05-15-2019, 07:22 AM
Piotr
    Thread: Services
Post: Services

Hello I have GetImageInfo function in my model but i get error: Class 'App\Models\Config\Services' not found PHP Code: -- $info = Config\Services::image()             ->withFile($file_path)     ...
2,217 Views
2 Replies
05-12-2019, 02:12 PM
Piotr
    Thread: How to use ajax/json with validation ?
Post: RE: How to use ajax/json with validation ?

bvrignaud Wrote: (11-23-2018, 10:48 AM) -- Hello, I'm actually working on a new project with CI4. It's greats :-) But I have some problems wit ajax request and validation. My view : Code:...
4,461 Views
4 Replies
11-23-2018, 11:13 AM
Piotr
    Thread: defined('BASEPATH') OR exit('No direct script access allowed');
Post: RE: defined('BASEPATH') OR exit('No direct script ...

If you call $this->load->model('xmodel') outside CI environment you gonna get some errors. This line check if your script is executed in CI "context". If not this stops execution of script. There w...
12,588 Views
6 Replies
10-17-2018, 01:04 PM
Piotr
    Thread: Non PHP Config Files in CodeIgniter 3
Post: RE: Non PHP Config Files in CodeIgniter 3

You can do everything what you want if you have time and skills but why you wanna change config to json? If you do this you must track every call to var in your config.php and change this or write som...
1,613 Views
1 Replies
10-14-2018, 05:40 AM
Piotr
    Thread: A PHP Error was encountered
Post: RE: A PHP Error was encountered

I don't know. Hard to tell without seeing code.
6,616 Views
6 Replies
10-13-2018, 09:29 AM
Piotr
    Thread: Problem in load css
Post: RE: Problem in load css

Go to browser console (F12 on firefox) then goto tab network and look what is returned near your css file. Which http code etc
9,464 Views
13 Replies
10-13-2018, 09:21 AM
Piotr
    Thread: A PHP Error was encountered
Post: RE: A PHP Error was encountered

Problem is in views/view_lesson.php on line 83 you using property of var that is not object.
6,616 Views
6 Replies
10-12-2018, 05:43 AM
Piotr
    Thread: no output display in dropdown list
Post: RE: no output display in dropdown list

He don't write server optimized for 1 million users, he generate list of options. Allow him to learn how to write clear code after that he gonna be think about optimization.. For you writing four ...
5,516 Views
6 Replies
10-11-2018, 10:40 AM
Piotr
    Thread: no output display in dropdown list
Post: RE: no output display in dropdown list

Code: -- Select Staff -- 1) If you dont know how to use a ? b : c use if first 2) Why you use four times
5,516 Views
6 Replies
10-11-2018, 07:20 AM
Piotr
    Thread: enable/disable submit button based on my row table value
Post: RE: enable/disable submit button based on my row t...

You should do this by finding this button by id or class or if this is only one submit button on page by selector $('input[type=submit]'); Im not exactly know how your code should work with this custo...
7,029 Views
2 Replies
10-05-2018, 04:45 AM
Piotr
    Thread: Using AES_ENCRYPT in model
Post: RE: Using AES_ENCRYPT in model

What is $this in second solution??
5,393 Views
3 Replies
10-04-2018, 05:30 PM
Piotr
    Thread: foreach with different value results is correct but i got error message
Post: RE: foreach with different value results is correc...

If you have error then use isset(). Looks like property_exists() was just bad idea. I wrote this as quick reply without testing.
8,376 Views
5 Replies
10-03-2018, 06:06 PM
Piotr
    Thread: foreach with different value results is correct but i got error message
Post: RE: foreach with different value results is correc...

isset or property_exists ?
8,376 Views
5 Replies
10-03-2018, 12:08 PM
Piotr
    Thread: 500 error from call to XMLHttpRequest()
Post: RE: 500 error from call to XMLHttpRequest()

richb201 Wrote: (09-15-2018, 01:58 AM) -- valid point. My problem might be a need to set a Content-Length in the header.  I added: ->set_header("Content-Length: 1000") And it still gives me ...
4,596 Views
4 Replies
09-15-2018, 06:56 AM
Piotr
    Thread: File upload + Post
Post: File upload + Post

Hello I upload file using upload lib, everything works ok but i want add also file description so i send it with file via post variable. In controller there is no any post variables. $this->input->po...
2,524 Views
1 Replies
10-15-2017, 03:46 PM
Piotr

Theme © iAndrew 2016 - Forum software by © MyBB