Questions tagged as 'php'

2
answers

Problem with return of car in PHP

I have a problem writing in a text file that when I apply the \ n does not pass to the next line and it leaves all the text pasted, here the code. $Data = "Nombre " . $jsonencode[0]->nombre . "\n" . $jsonencode[0]-> apellidos . "\n". $js...
asked by 23.06.2018 / 19:23
2
answers

I get this error: Notice: Undefined index: id in C: \ xampp \ htdocs \ master \ modify.php on line 4

Good afternoon my name is Any and I am programming a database to do some surveys and I get this error:    Notice: Undefined index: id in C: \ xampp \ htdocs \ master \ modify.php   on line 4 Here is the code sheet modify <?php re...
asked by 26.06.2018 / 22:14
4
answers

Sum of Hours and minutes MySQL in two fields

I am working with a program in PHP with connection to database MySQL everything has gone well except in the section to get the total number of hours between two columns named Entry and Exit. The program captures the hour of entr...
asked by 17.07.2017 / 20:17
2
answers

How can I send multiple emails in PHP Mailer

I am using the PHP Mailer library, to send emails, in this case if you send them, but only to a single email address, and I want, through an array that brings me certain emails from the bd and can send to each of them. This is the code of the li...
asked by 05.08.2017 / 22:21
1
answer

Composer error when updating symfony

I'm trying to update symfony from version 2.3 to a more advanced one, my intention was about a 3.0 but there's no way. Reading in the forums I updated the composer.json to a "minimum-stability": "dev" but even so, I always get some dependency...
asked by 03.08.2017 / 23:48
2
answers

PHP - Problem with Array ()

I have the following code $patron = '/{usuario}/photos/{photo_id}/comments/{comment_id}'; $array_patron = str_split($patron); $array3 = array(); $variable_open = false; $ind = -1; foreach($array_patron as $i => $val){ if($val === '{'){...
asked by 09.08.2017 / 22:21
1
answer

Tour PHP two-dimensional arrangement

I need to go through an arrangement $data that is as follows: array(2) { [0]=> object(stdClass)#18 (4) { ["Descripción"]=> string(5) "Aceite" ["Codigo"]=> string(7) "2222222" ["Precio"]=> strin...
asked by 11.05.2017 / 18:27
1
answer

PHP file_exist does not return expected results

I am checking if there is an image to show it if it does not exist, that it shows a default image. To prove it I have tried the following: $imagen = 'http://'.$_SERVER['SERVER_NAME'].'/assets/img/'.$infoUsuario["USCOD"].'.png'; echo $imagen; i...
asked by 05.06.2017 / 11:29
3
answers

How to include a load image (Loading), ajax execution

Code the following code that I use after making an "Onsubmit" in form: function buscar(){ resul = document.getElementById('resultado'); bus=document.frmbusqueda.dato.value; tipo=document.frmbusqueda.tipo.value; ajax=nuevoAjax()...
asked by 13.11.2016 / 16:46
2
answers

Failed to pass files from VPS to a shared FTP hosting

The destination FTP folder has permissions 775, and the FTP user is the administrator user of that shared hosting account and therefore I understand that the permissions to be made The transfer is adequate to write. The code includes a fu...
asked by 23.03.2017 / 12:52