Questions tagged [codeigniter-3]
For questions specific to the 3rd release of CodeIgniter, an Application Development Framework (a toolkit) is designed for people who build websites using PHP. If your problem isn't specific to this version, use just [codeigniter].
codeigniter-3
5,492
questions
0
votes
0
answers
8
views
how to create pdf by dompdf with background image?
i use simply following to print some data in pdf by dompdf in my codeigniter 3 project. here is my controller method:
public function index() {
// Load Dompdf library
$dompdf = new Dompdf\...
0
votes
0
answers
11
views
Message: mysqli::real_connect(): (HY000/2002): No route to host [duplicate]
i have codeigniter 3.1.11 on ubuntu 24 and i am not able to connect mysql
here my error message
Message: mysqli::real_connect(): (HY000/2002): No route to host
even my username and password are ...
0
votes
0
answers
21
views
resolve ajax failure in codeigniter 3 view page?
in codeigniter 3 view page i have following to edit comments :
function toggleEdit(commentId) {
console.log("Toggling edit for comment ID:", commentId);
var commentText = ...
0
votes
0
answers
23
views
how should i print data to pdf fetched from phpmyadmin in codeigniter 3 view page?
in codeigniter 3 view page i use following ajax to fetch some data from phpmyadmin which consisted of some html data:
$(document).ready(function() {
$('#fetchDataButton').click(function() {
...
-2
votes
0
answers
28
views
How to retrieve file/image from one project to another project in codeigniter php
I am new to php codeigniter, Am tring to get image dynamically from one project to another project codeigniter. Below are the project urls.
C:\xampp\htdocs\newproject\
C:\xampp\htdocs\oldproject\
...
0
votes
1
answer
44
views
multiple image upload issue while editing images in codeigniter php
i have an image upload form, while adding the upload is working fine. Now my edit form looks like below:
<input type="hidden" name="pimage2old" value="<?...
-2
votes
1
answer
26
views
How to retrieve images/files from one server to another server in php codeigniter
I have two projects and upload paths will be like below.
http://localhost/project1
http://localhost/project2
Upload files/images folder paths below.
C:\xampp\htdocs\project1\application\assets\...
-5
votes
1
answer
71
views
how to retrieve a file using php
I want to retrieve a file/image from specific path in php, I was tried different ways like file_get_contents and opendir and readdir like etc , but unable to find any solutions, Can you please help on ...
0
votes
1
answer
17
views
Codeigniter 3: Inserting Dynamic Input type = "file" Course>Section>Media Field
<script>
let mediaHtml = `
<div class="mediaItem">
<input type="text" name="sections[${sectionDiv.data('section-id')}][media][${mediaCounter}][...
0
votes
1
answer
50
views
Append cloned row to latest child where the button is clicked
I have a table with a button that when clicked, I save it in the DB via AJAX. If successful, it should clone the current row where the button is in, and then append it to the latest child. Saving it ...
-1
votes
0
answers
26
views
How to fix undefined function pg_connect() [duplicate]
PHP: 8.1
CodeIgniter: 3.1.13 (I am continuing to use CodeIgniter 3 because the structure is very different from CI4.)
OS: Amazon Linux 2023
When deploying with Nginx, I get the following error:
Type: ...
-2
votes
0
answers
72
views
PhpWord error: Invalid or uninitialized Zip object
How to fix this error PhpOffice/PhpWord?
**A PHP Error was encountered**
Severity: Warning
Message: ZipArchive::close(): Invalid or uninitialized Zip object
Filename: Shared/ZipArchive.php
Line ...
0
votes
0
answers
22
views
How to use insert_batch CI 3, but some param not need include on array?
I've form to insert data use insert_batch CI 3, my plan is use insert_batch to insert more data in one time and javascript to create dynamically the form. Below the code I've to try it.
Controller
...
0
votes
0
answers
30
views
Message: Declaration of Phalcon\Translate\Adapter\AbstractAdapter::offsetUnset() must be compatible with ArrayAccess::offsetUnset($offset)
I created a website some years ago using codeigniter 3. I uploaded it to cPanel and my hosting provider upgraded PHP to 8.1, then I started seeing this error on the website
A PHP Error was encountered
...
0
votes
1
answer
55
views
Json data not reaching to controller
<script>
function makePayment() {
const txRef = `shayonix-${new Date().getTime()}-${Math.random().toString(36).substring(2, 15)}`;
let price = document.getElementById("...