Questions tagged as 'php'

1
answer

MySQL does not collect data

I am trying to collect data to show on my page comments but not the table ... Can you help me? I have attached code and database capture. <?php $host_name = 'dbxxxxxx.db.1and1.com'; $database = 'dbxxxxx'; $user_name = 'dboxxxx'; $pass...
asked by 15.01.2018 / 08:30
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
1
answer

error query php sql phpmyadmin in data type SET, does not return the data correctly (write error)

I have a conculta to my database function ticketsanulacionpendientesSISTEMAS($conexion){ $pendientes = (mysqli_query($conexion, "SELECT COUNT(*) AS conteo FROM ticket WHERE tipo_solicitud = 1 && status = 1 or status= 2 or stat...
asked by 19.04.2018 / 17:18
2
answers

Doubt with the include php

File nav.php, the one that I use to include it according to the ticket_type of the user after logging in. <?php $active = array(); for($i=0; $i<7; $i++){ if($_GET['active']==$i){ $active[$i] = 'active'; } else{...
asked by 18.04.2018 / 21:00
2
answers

How to pass a javascript variable to an external php

I have a javascript function in which I get a variable that I need to use in a different php file and I do not know how to do it. I show you the code of the files, thanks in advance. JavaScript file (test1.html) function boton() { var...
asked by 20.04.2018 / 17:07
2
answers

Jquery returns empty values

I have this jquery code in which I assign the values obtained in txtVlr and txtQuantity to some variables, then multilink them and the result put it in the txtSubtotal just when there is a change in the txtquantity, but when executing it the var...
asked by 21.04.2018 / 17:40
2
answers

Access checkbox of a php table

as I can access the elements of type checkbox and fence me adding in a input the number of selected rows as you can see in the image. My table: <tbody> <?php if(!empty($tarimas)):...
asked by 18.04.2018 / 01:54
1
answer

How to traverse a JSON array in PHP

I need to run a JSON array in PHP Query URL: link { "coError": "0000", "coRpta": null, "feCaducidad": "05\/12\/2019", "listaTramites": [ { "nomTramite": "Rectificaci\u00f3n", "tiTramite": "R", "feTramite": "09\/...
asked by 09.12.2017 / 02:13
1
answer

Group repeated fields of a MySQL query with PHP

I have an intermediate table (N: M) in MySQL where I store the idProfesor and idMateria , when recovering the data from PHP it returns me 5 rows: id | idMateria | idProfesor ---+-----------+----------- 1 | 1 | 1 2 | 2...
asked by 12.12.2017 / 05:27
1
answer

Notice: Array to string conversion

Why does it show me the error: Array to string conversion? If I just pass a value to the function anadirImagenAccesorio , and that value is a text. PHP Code: static public function anadirImagenAccesorio ($descripcion) { $e...
asked by 13.12.2017 / 20:25