Questions tagged as 'php'

1
answer

Symfony, do not show a field in a Type form

Good, I have a form in Symfony of type "type" that shows a series of attributes, but in a specific case I would like to show the whole form except one field. I tried to pass from the controller to the constructor of the buildForm in the Optio...
asked by 02.02.2018 / 15:10
1
answer

Work with JSON data in PHP

I have a variable JavaScript in the following way: var datos ={Tabla: 'Principal' , CampoConsulta:['Nombre','Apellido_Pa','Apellido_Ma'], DatosConsulta:['Juan Luis','Perez','Martinez'], TipoDato:['s','s','s'], Val:[1,2,3] }; This dat...
asked by 04.02.2018 / 02:44
2
answers

Delete BD record with PHP

Hi, I have a little query to see if anyone can help me. I have a table that connects to my database and brings the records, and now I need that in my table, in each record, there is a delete record button. I have the button created as shown i...
asked by 30.12.2017 / 11:12
1
answer

Do not log in even if the data is correct - PHP

I have a form to "login" the client. With two fields: user and password. Is the syntax for connecting to the database correct? $conexion = mysqli_connect("mysql:host=localhost", "1718d0_osmar", "1718d0_osmar", "1718d0_osmar"); Why...
asked by 10.01.2018 / 23:28
1
answer

CodeIgniter how to make the autoincrementable id re-insert from 1

Hi, I am working with CodeIgniter and in an operation it happens that all the contents of a table must be deleted, and then insert the new records. All this happens without problems, but I need that when inserting new records the autoincremen...
asked by 02.01.2018 / 01:00
1
answer

Problem when saving image on server [closed]

   PHP upload <?php if($_SERVER["REQUEST_METHOD"]=="POST"){ include('conexion.php'); //Agregar reporte de marcadores $datos[0] = trim($_POST['usuario']); $datos[1] = trim($_POST['fecha']);...
asked by 30.12.2017 / 23:29
1
answer

How can I avoid when printing on screen [duplicated]

Hello, when I pass the data, these icons always appear: What is Html? Html is a programming language to be able to create web pages ... How can I avoid it please. All data always appears to me that way.     
asked by 01.01.2018 / 10:57
1
answer

Error: The msqli extension is out of date in php in my panel? [duplicate]

Hello, when I try to login to my panel by means of the following code line: mysql_connect($server, $user, $pass); mysql_select_db($db); Return the error: Msql esta desactualizado. Then what I do is pass it to msqli: mysqli_connect(...
asked by 12.01.2018 / 01:33
1
answer

Error trying to execute query Object of class mysqli_result could

Here is my code php that what it does is show in JSON the information of the table. if($_SERVER["REQUEST_METHOD"]=="POST"){ include('conexion.php'); $result = mysqli_query($con,"SELECT * FROM localidades").mysqli_error($con); /...
asked by 02.01.2018 / 04:43
1
answer

Do not upload image to MySQL PHP database

The following code does not work for uploading an image to a database. HTML Code: <label for="imagen">Imagen:</label> <input type="file" multiple="multiple" name="imagen[]" required /> PHP Code: //Subir el...
asked by 11.01.2018 / 13:39