Questions tagged as 'codeigniter'

2
answers

From SQL query to Query in Codeigniter

I have the following query in SQL that works fine SELECT MONTH(NOW()) AS mes, SUM(importe) as monto FROM pago_cliente WHERE MONTH(fecha_del_deposito) = MONTH(NOW()) AND YEAR(fecha_del_deposito) = YEAR(NOW()) GROUP BY 1 And I try to t...
asked by 27.03.2018 / 21:16
1
answer

Firebird and codeignter

Someone knows exactly what this error means in firebird    This column can not be updated because it is derived from an SQL   function or expression.Attempted update of read-only column. In codeigniter:    A PHP Error was encountered...
asked by 19.05.2016 / 21:00
2
answers

Error in php, with if

This is the error that appears to me,    An uncaught Exception was encountered       Type: ParseError       Message: syntax error, unexpected 'if' (T_IF)       Filename: C: \ xampp \ htdocs \ upa \ application \ controllers \ admin \ Users....
asked by 11.10.2018 / 17:41
2
answers

Get the current time Codeigniter 3x?

I need to get the current time to insert it into the database, I have tried using the CI helper $this->load->helper('date'); now(); I tried this function but it inserts me 00:00:00 Greetings thank you very much     
asked by 20.03.2017 / 06:52
2
answers

Load view in a modal with Ajax

Hello! You see ... I have a dilemma with the load of a file (view) that I need will be in the body of a modal , since, this will be the beginning to be able to show information later. As such, I have the following. In my view Li...
asked by 22.12.2017 / 20:29
1
answer

Why do not you save the data from a wysiwyg editor?

At the moment of saving the data of the editor in the database, it keeps me with some symbols and not with the label. Why is this? Thanks for your comments     
asked by 26.03.2018 / 18:41
2
answers

How to send emails from codeigniter with phpmailer? [closed]

Hello good morning you will see I am very new in this and recently I was entrusted with the task of sending emails. I have to create a form that allows me to take errands and then another that is to send notifications of the raids and I did it a...
asked by 14.03.2018 / 19:32
1
answer

Show image from stored route with PHP

You see, I have occupied the following function to be able to obtain the data of my current session: public function login(){ $username = $this->input->post("username"); $password = $this->input->post("password");...
asked by 18.12.2017 / 11:53
2
answers

Pass fix by ajax jquery to PHP post

I have the following arrangement that I want to send by ajax jquery by post to php codeigniter    var array = []; (2) [Object, Object] 0 : Object Codigo : "11111" Descripción : "caja" Eliminar : " Eliminar" Precio : "$46" __proto__ : Objec...
asked by 10.05.2017 / 20:47
2
answers

Integrate function input PHP in HTML input

Hi, I'm trying to integrate a PHP function into an HTML input, because if I remove the HTML input and leave only the PHP function, by not taking the styles the field is reduced in width by half, as you can see in the image. * PHP + HTML <...
asked by 20.04.2017 / 09:19