Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Ajax upload: Firefox data resubmission.
Post: Ajax upload: Firefox data resubmission.

My site was uploading files perfectly until recently but I'm presuming that there was a security fix in the meantime which has stopped it working. My users need to upload drawing files, but these are...
165 Views
0 Replies
03-02-2024, 04:38 AM
davecoventry
    Thread: Retrieving the results of a selectSum query
Post: RE: Retrieving the results of a selectSum query

Thank you. I'll try that.
542 Views
3 Replies
09-15-2023, 11:04 PM
davecoventry
    Thread: Retrieving the results of a selectSum query
Post: Retrieving the results of a selectSum query

I am trying to find the sum total of a table column. The table contains details of documents including the file sizes which are in a column called 'dsize'. Accoding to https://codeigniter.com/user_gu...
542 Views
3 Replies
09-15-2023, 02:22 AM
davecoventry
    Thread: Loading an image into a View.
Post: RE: Loading an image into a View.

See my post under the "Best Practices" subforum.
801 Views
1 Replies
11-11-2022, 11:08 PM
davecoventry
    Thread: Best place to put user uploaded files.
Post: RE: Best place to put user uploaded files.

Ok, this is what I'm doing. In /public: preview.php PHP Code: -- -- In my view.php file: Code: --
1,385 Views
1 Replies
11-11-2022, 11:05 PM
davecoventry
    Thread: Loading an image into a View.
Post: Loading an image into a View.

I have some image files in ROOTPATH."writable/users/ which I am trying to display in the user's browser. My Routes.php contains the line:$routes->get('/loadthumbs/(:any)', 'ThumbController::loadthumb...
801 Views
1 Replies
11-06-2022, 12:15 PM
davecoventry
    Thread: Best place to put user uploaded files.
Post: Best place to put user uploaded files.

When the user uploads a document, I've placed it in ROOTPATH."writable/users/userid/" However, there is an image file located in the user's directory that I want to be able to display. I don't want ...
1,385 Views
1 Replies
10-30-2022, 06:16 AM
davecoventry
    Thread: How do I get the autoincremented ID of the latest inserted row.
Post: RE: How do I get the autoincremented ID of the lat...

It's suddenly started working for me too. I have no idea what I was doing wrong, but it was obviously something stupid. Thanks for your response, and sorry to have wasted everybody's time (inclu...
1,478 Views
2 Replies
10-16-2022, 02:31 AM
davecoventry
    Thread: How do I get the autoincremented ID of the latest inserted row.
Post: How do I get the autoincremented ID of the latest ...

My code: PHP Code: --     $this->db->simpleQuery('Use D'.$id);     $this->db->table('drawings')->insert(array("name"=>$fname));     return $this->db->insertID(); -- This returns a model object...
1,478 Views
2 Replies
10-15-2022, 01:14 PM
davecoventry
    Thread: Creating a new database.
Post: RE: Creating a new database.

Just to add that creating tables for the new database is not really straightforward and the code above generates an error when fields and tables are added: "InvalidArgumentException D8 is not a valid ...
1,879 Views
4 Replies
10-12-2022, 06:04 AM
davecoventry
    Thread: Creating a new database.
Post: RE: Creating a new database.

Thanks! Your response got me thinking and it occurred to me that my database user did not have permissions to create the new database. Once I corrected this, the Model worked as expected... Many th...
1,879 Views
4 Replies
10-11-2022, 02:44 AM
davecoventry
    Thread: Creating a new database.
Post: Creating a new database.

I've been trying to follow the process for creating a new database, as detailed here: https://codeigniter4.github.io/userguide/dbmgmt/forge.html#forge-createdatabase-db-name PHP Code: --
1,879 Views
4 Replies
10-10-2022, 12:30 PM
davecoventry
    Thread: Database model to update a field.
Post: RE: Database model to update a field.

kenjis Wrote: (10-04-2022, 11:47 PM) -- PHP Code: -- array('password',$pw) ↓ ['password' => $pw] -- See https://codeigniter4.github.io/CodeIgniter4/database/query_builder.html#builder-update -- ...
794 Views
2 Replies
10-05-2022, 12:28 AM
davecoventry
    Thread: Database model to update a field.
Post: Database model to update a field.

I'm clearly not understanding how the Database model works. I have a php script in /App/Models as follows: PHP Code: -- -- All the functions work except for the last function (updatePassword()),...
794 Views
2 Replies
10-04-2022, 10:58 PM
davecoventry
    Thread: Google Captcha implementation.
Post: RE: Google Captcha implementation.

I just left it. Seems to work.
3,132 Views
10 Replies
09-30-2022, 06:43 AM
davecoventry
    Thread: Google Captcha implementation.
Post: RE: Google Captcha implementation.

Forgive me for asking another question, but the Readme.md describes a file called "/app/Config/Validation.php" I don't appear to have this file: do I just create it? I can't see how it is called.
3,132 Views
10 Replies
09-29-2022, 11:36 AM
davecoventry
    Thread: Google Captcha implementation.
Post: RE: Google Captcha implementation.

Thanks, my question is answered in the link you sent. I responded before I actually read it.
3,132 Views
10 Replies
09-29-2022, 03:38 AM
davecoventry
    Thread: Google Captcha implementation.
Post: RE: Google Captcha implementation.

Thabks. Much appreciated. When the documentation refers to a '.env' file (with a dot preceding the filename), is this the same as 'env' without the dot? It's a little ambiguous because the d...
3,132 Views
10 Replies
09-28-2022, 10:17 PM
davecoventry
    Thread: Google Captcha implementation.
Post: RE: Google Captcha implementation.

If the instructions for installing the captchav3 helper talks about "In the .env file you need to add your personal ReCaptcha keys.", where do I find this .env file? I see there is file called 'env...
3,132 Views
10 Replies
09-28-2022, 11:48 AM
davecoventry
    Thread: Google Captcha implementation.
Post: RE: Google Captcha implementation.

iRedds Wrote: (09-26-2022, 04:27 PM) -- This library is for CI3.x and below. -- Sheeesh. You know how long I've been struggling to work out what I'm doing wrong? :@
3,132 Views
10 Replies
09-26-2022, 10:54 PM
davecoventry

Theme © iAndrew 2016 - Forum software by © MyBB