Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: GET query doesn't work
Post: GET query doesn't work

I'm trying to use GET parameters in an URL (for example myserver.com/acontroler/?alias=q) but it doesn't work. First it raised a BadRequestException #400 because it has disallowed characters, but add...
417 Views
2 Replies
08-07-2024, 03:30 AM
Ñuño Martínez
    Thread: Getting HTTP 404 when redirecting but reloading works.
Post: RE: Getting HTTP 404 when redirecting but reloadin...

kenjis Wrote: (07-16-2024, 02:16 PM) -- Ñuño Martínez Wrote: (07-15-2024, 10:46 AM) -- PHP Code: -- return redirect ()->to ('', 307); -- -- Why did you specify 307 intentionally? -- Because i...
1,633 Views
9 Replies
08-07-2024, 03:16 AM
Ñuño Martínez
    Thread: Getting HTTP 404 when redirecting but reloading works.
Post: RE: Getting HTTP 404 when redirecting but reloadin...

kenjis Wrote: (07-15-2024, 03:26 PM) -- The most common cause of a 404 error is that the route does not exist. 1. Set development mode. https://codeigniter.com/user_guide/installation/running.html...
1,633 Views
9 Replies
07-16-2024, 10:49 AM
Ñuño Martínez
    Thread: Getting HTTP 404 when redirecting but reloading works.
Post: Getting HTTP 404 when redirecting but reloading wo...

Using CodeIgniter 4.5.3, after doing user identification (you know, creating a session variable and updating the database to register the login) I do a redirection to the index page this way: PHP Co...
1,633 Views
9 Replies
07-15-2024, 10:46 AM
Ñuño Martínez
    Thread: Catch exeption from database insert
Post: RE: Catch exeption from database insert

InsiteFX Wrote: (07-09-2024, 09:58 PM) -- Code: -- This may shed some light on the subject. Add This one line: mysqli_report(MYSQLI_REPORT_ALL); -- StackOverflow - Catch does not report an...
2,057 Views
10 Replies
07-15-2024, 10:34 AM
Ñuño Martínez
    Thread: Catch exeption from database insert
Post: RE: Catch exeption from database insert

kenjis Wrote: (06-29-2024, 04:27 PM) -- And catching large class like Throwable is not good practice. Because it catches all exceptions including others than you want to catch. -- I know, but I do...
2,057 Views
10 Replies
07-09-2024, 08:14 AM
Ñuño Martínez
    Thread: Catch exeption from database insert
Post: RE: Catch exeption from database insert

MySQLi, but the idea is that the customer can use any one available.
2,057 Views
10 Replies
06-28-2024, 02:21 AM
Ñuño Martínez
    Thread: Catch exeption from database insert
Post: RE: Catch exeption from database insert

It works. Thank you. I'm still not used to the new* Trowable hierarchy. I still think the base class is Exception. _________________________ * I know it's not new-new.
2,057 Views
10 Replies
06-28-2024, 01:20 AM
Ñuño Martínez
  Exclamation Thread: Catch exeption from database insert
Post: Catch exeption from database insert

Developing a web application, I'm using insert () (https://codeigniter.com/user_guide/models/model.html#insert) to add registers to the database.  I'm using the optional parameter to return a boolean ...
2,057 Views
10 Replies
06-27-2024, 03:36 AM
Ñuño Martínez

Theme © iAndrew 2016 - Forum software by © MyBB