Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CI4 Model find returns all rows when key is null
Post: RE: CI4 Model find returns all rows when key is nu...

iRedds Wrote: (03-10-2022, 09:17 AM) -- Yes, it returns all records. It's mentioned in the documentation. If you don't like it, you can offer a PR with changes and justification. Or rewrite the ...
1,367 Views
2 Replies
03-10-2022, 01:05 PM
crouchkl
    Thread: CI4 Model find returns all rows when key is null
Post: CI4 Model find returns all rows when key is null

Just checking to see if this is how CI4 is supposed to work. I'm searching in a table for a specific address and the find is returning all rows in the table when the key is null. Here is the line of ...
1,367 Views
2 Replies
03-10-2022, 08:54 AM
crouchkl
    Thread: count_all_results returns 1 every time in 3.0.6
Post: RE: count_all_results returns 1 every time in 3.0....

Updated the version and now it appears to be working. Thank you for all of the help
6,120 Views
5 Replies
06-09-2017, 06:23 AM
crouchkl
    Thread: count_all_results returns 1 every time in 3.0.6
Post: RE: count_all_results returns 1 every time in 3.0....

I echoed the last_query and got the following: SELECT COUNT(*) AS `numrows` FROM `Customer` LEFT OUTER JOIN `Address` ON `Address`.`customer_obj_id` = `Customer`.`obj_id` and `Address`.`default_add...
6,120 Views
5 Replies
06-08-2017, 06:57 PM
crouchkl
    Thread: count_all_results returns 1 every time in 3.0.6
Post: count_all_results returns 1 every time in 3.0.6

I have the following code to get results from a mySQL database. Every time I run the code, theĀ resultĀ is 1. If I run a get() on the code, 3 rows are returned. $this->db->select('Customer.obj_id as ...
6,120 Views
5 Replies
06-08-2017, 10:49 AM
crouchkl
    Thread: base_url() returning ip instead of url in 3.1.3
Post: RE: base_url() returning ip instead of url in 3.1....

I soooo stupid!!! I knew this and forgot to set it!!! THANK YOU!!!
8,070 Views
2 Replies
04-24-2017, 08:22 AM
crouchkl
    Thread: base_url() returning ip instead of url in 3.1.3
Post: base_url() returning ip instead of url in 3.1.3

I'm having a weird issue where base_url() is returning the IP address of the server instead of the actual URL. I have the site in a folder on the server, similar to another site that I have that's run...
8,070 Views
2 Replies
04-24-2017, 07:52 AM
crouchkl

Theme © iAndrew 2016 - Forum software by © MyBB