Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to gracefully degrade SQL errors
Post: RE: How to gracefully degrade SQL errors

I found the answer.  For those who also encounter this problem, you need to change 'development' to 'production' for the environment at the top of your index.php page.   PHP Code: -- *-----------...
5,211 Views
2 Replies
12-17-2017, 05:04 AM
colin147
    Thread: How to gracefully degrade SQL errors
Post: How to gracefully degrade SQL errors

Hi all, If I get an SQL error I'd like to log it and redirect the user to an error page which just informs them there has been an error. The code I have tried below doesn't work (log_message doe...
5,211 Views
2 Replies
12-17-2017, 04:58 AM
colin147
    Thread: ON DUPLICATE KEY or equivalent
Post: RE: ON DUPLICATE KEY or equivalent

Thanks again, very simple when you stop to think about it. It's still not working, but not because of this!
7,942 Views
4 Replies
11-30-2017, 03:44 AM
colin147
    Thread: ON DUPLICATE KEY or equivalent
Post: RE: ON DUPLICATE KEY or equivalent

Thanks.  Yeah I don't want to use replace as that will create a new auto-increment PK. The PK isn't the issue, it's a unique index on 3 fields, but I'll see if your idea of seeing if it is there an...
7,942 Views
4 Replies
11-30-2017, 03:07 AM
colin147
    Thread: ON DUPLICATE KEY or equivalent
Post: ON DUPLICATE KEY or equivalent

My table has a unique index; the primary key is auto increment. I want to insert, but if there is a duplicate on the unique key, then update instead. I'm using Active Record, and it keep trippin...
7,942 Views
4 Replies
11-29-2017, 12:54 PM
colin147
    Thread: Possible to specify ID and Class to a tbale generated from the table class?
Post: RE: Possible to specify ID and Class to a tbale ge...

Ah, templates!  Thanks guys, I knew there was a simple answer somewhere!
4,762 Views
4 Replies
11-21-2017, 02:51 AM
colin147
    Thread: Possible to specify ID and Class to a tbale generated from the table class?
Post: Possible to specify ID and Class to a tbale genera...

For CSS I would like to apply an ID and a class to a table generated using the CI table class - how would I  do this please?
4,762 Views
4 Replies
11-20-2017, 06:02 AM
colin147

Theme © iAndrew 2016 - Forum software by © MyBB