Questions tagged as 'php'

1
answer

Cron job php to send mass mail

I have made a small program in php that consults who is celebrating the day today and sends a congratulatory email to the people who throw the query, with PHPMailer, everything works perfect, now I want to automate it, and I want to create a cro...
asked by 08.05.2017 / 14:52
2
answers

save dates in a mysql table

my users table is composed of three fields name varchar 15, comment varchar 255 and date date, I want to send a comment to save the date of the publication of the comment in the field date <form method="get" action="conexion.php"> <in...
asked by 08.05.2017 / 13:29
1
answer

Get list of elements filtered by id

For example, I have two tables with relation 1_n (Intervals have one to many deliveries) but I am not able to list the deliveries related to the specific user id filtering in the controller with the where clause. I try the following but it does...
asked by 08.05.2017 / 09:41
1
answer

Long process in php, run it in the background

I have a process in PHP that generates an excel file with data calculated from several sql server tables. The problem is that being a process that takes a long time (it may take more than 10 minutes), the server always returns an error "Fatal er...
asked by 08.05.2017 / 12:21
1
answer

Fatal error: Call to a member function query () on null in

I am trying to make a Login using the Vista Controller model (MVC), the database is already created, the problem is when validating a user, whatever the user sends this message. <?php class conexion{ private $conexion; private $serve...
asked by 14.05.2017 / 23:31
1
answer

Upload an image in PHP framework CodeIgniter

I can not upload the image and I do not receive the name to save it in the Database , I got the following error:    "You did not select a file to upload" Controller: $config['upload_path'] = base_url()."assets/img/uploads/";...
asked by 15.05.2017 / 15:32
1
answer

Compare an Input with a record in a bbdd

We imagine that I have this form (It's much bigger but I want to try just one field): <form id="form1 " action="?action" method="POST"> <tr> <th style="text-align:left;">Acronimo</th> <td&...
asked by 14.05.2017 / 17:29
2
answers

Remove decimals from PHP number

   I have the following number: "4.000.00" I need to delete the point and   the two 0 the right in (php 5) thank you! I tried with: preg_replace('/^(\d+)\.0+$/', '$1', $this->input->post('valor')); trim($this->input->post('val...
asked by 12.05.2017 / 15:18
2
answers

Uncaught ReferenceError: url is not defined in the url line: url + 'remove_contact_company.php',

function cargaPagina(pagina) { var desde = pagina * itemsPorPagina; $.ajax({ data:{"param1":"dame","limit":itemsPorPagina,"offset":desde}, type:"GET", dataType:"json", url:"Conexion_Contacto.php"...
asked by 15.09.2017 / 03:28
2
answers

Query call data by selecting a datatable AJAX field

Hello I have the following question, I call the data in my database through the current year, with the following code: <script> $(document).on("ready", function(){ listar(); }); var listar =...
asked by 14.09.2017 / 15:43