Questions tagged as 'php'

2
answers

Make an alert in which you can not modify the fields of a crud

Good evening I was doing an exercise where there is a form of low discharge and modification for clients and invoices. My doubt started since not being able to relate tables through phpmyadmin (using the wamp package), since it tells me a messag...
asked by 15.10.2017 / 05:12
1
answer

Show gif loading php

I need to put a loading message while a sql statement is executed, since the specific statement will take a while to complete and I would like a gif or a simple message to be displayed. I attached my PHP code try{ include ('./pdo.php');...
asked by 15.10.2017 / 16:54
1
answer

Error with foreach and cartesian product

I have this code: $CArticulos = Consulta_Dinamica("Array","*","Articulos","'borrado' != 1 ORDER BY 'id' DESC"); if ($CArticulos) { //si existen Datos en la base de datos foreach($CArticulos as $DArticulos) { if (isset($DArticulos['talla'...
asked by 15.10.2017 / 20:49
2
answers

button upload image to folder and permissions 755 [closed]

my question is this: through a button any user who accesses the form on my website can upload an image to an image folder. This works perfectly if the permissions of the folder are at least 757. What I need for security is that they can uploa...
asked by 29.09.2017 / 07:44
1
answer

Undefined when entering the value in the DB [closed]

It connects me perfectly all the values but when entering a part that is called incidence appears to me write what you write me appears undefined this is the code where data is entered into the DB require_once ("../con...
asked by 28.09.2017 / 20:16
2
answers

SMTP error: Could not connect to the SMTP server

I can not send emails from my application, this is with the phpMailer library, when sending emails it shows me the error message SMTP: Could not connect to the SMTP server. Enter all the parameters of the server, which is smtp.gmail.com, user...
asked by 27.09.2017 / 21:46
1
answer

download of imagenen that is in the DB

as I do to download and to show on screen a previously loaded image to the database This is the php that seeks to load the image I do with the variable but the only thing that loads is the name of the image <?php...
asked by 28.09.2017 / 22:39
2
answers

Text ordering

In a form I have a textarea at the time of entering data the income of the following form. But when I call it from the database it pulls me like a line Is there any way to get it sorted out as you entered it at the beginning? I'm usi...
asked by 28.09.2017 / 16:29
1
answer

array using explode [closed]

I have to generate an array with this syntax array( 100 => [ 68, 69, 72 ], 103 => [ 68, 69, 72 ], 205 => [ 68, 69, 70, 71, 72 ], 343 => [ 68, 69, 72, 73 ] ) The first field is equivalent to sizes and the second to the color...
asked by 23.10.2017 / 18:47
1
answer

Notice Error: Undefined index: [closed]

The following code: <?php require_once $_SERVER['DOCUMENT_ROOT'].'/tecnliv/core/init.php'; $padreID = (int)$_POST['padreID']; $selected = sanitize($_POST['selected']); $childQuery = $db->query("SELECT * FROM 'categorias' WHERE padre = '...
asked by 30.08.2017 / 04:17