Questions tagged as 'codeigniter-3'

1
answer

Can not modify header information - headers already sent ... in Codeigniter

How about, I'm inserting data and an image in Codeigniter by means of a form, all that works, but it sends me the following:      Severity: Warning Message: Can not modify header information - headers already sent by (output started at /xxx/x...
asked by 07.06.2016 / 19:09
3
answers

How to take a variable and declare it in each function with php?

I have a variable defined $sql which has as value a statement sql the problem is that I need the same statement in different functions, but I do not want in each function to have to put $sql = "SELECT * FROM....." but direct...
asked by 26.04.2017 / 15:12
2
answers

How do I host my website in a hosting service? [closed]

I have my website (html5, css3, js, php, codeigniter). I am a beginner student in this area of web development and I would like to know how it is possible to host my website to a free hosting service. I would be grateful for free hosting serv...
asked by 20.02.2016 / 01:53
1
answer

How can I give css styles to this form

How can I give css styles to this form? Is there a better way to create forms in codeigniter 3? <h1>Formulario con Codeigniter 3</h1> <?php echo validation_errors("<p style='background: red; color: #fff'>", "</p>"...
asked by 19.09.2018 / 21:04
3
answers

Problem when inserting data in MYSQL with Codeigniter and Ajax

Good morning, What I want to do is that by pressing "Enter" I insert a new tag into the database. I created my script.js file: $(".inputTag").keypress(function(e){ if(e.which == 13) { $.ajax({ type: 'POST',...
asked by 22.03.2017 / 13:17
1
answer

How to validate a datetime with date in a php and mysql query?

I want to validate the entries and exits of a number of people in the day, that is, count how many people have entered, how many have left. for this I have a field called fecha_entrada and fecha_salida (both fields are datetime), t...
asked by 17.12.2018 / 06:00
1
answer

Call to undefined function mysqli_init ()

I am using CodeIgniter with Apache 2.4, I already checked my php.ini file and it does not have commented the line of extension=php_mysqli.dll , and in the same way I check that I have installed the library and I really do not know what the...
asked by 26.10.2018 / 19:34
1
answer

Store data in Cookies CodeIgniter

I am working with the Cookies in CodeIgniter but I have doubts about what I have to send the Cookie. This is my Cookie example, it does not mark me an error but I do not know how it stores the user's information. function set_cookie() { $thi...
asked by 23.10.2018 / 18:37
1
answer

Perform a UNION with Codeigniter

Hi, how can I make a UNION in codeigniter, since I want my table to fit between my two tables. Something like that. [array] => Array ( [0] => stdClass Object ( //TABLA 1...
asked by 17.07.2018 / 18:36
1
answer

Error downloading a file from my server with codeigniter

I am working on a project in codeigniter 3 , the problem I have is when downloading the file, when uploading the file to the server, I keep the path and the database in the database. name generated by the function do_upload of codeignit...
asked by 01.05.2018 / 00:13