Questions tagged as 'php'

1
answer

get the id of a php array

I have this array object(stdClass)[138] public 'articles' => array (size=39) 0 => object(stdClass)[140] public 'id' => int 56 public 'title' => string 'prueba con servicio json es tt aa' (l...
asked by 28.06.2018 / 22:42
1
answer

can you get information with javascript of an xml loaded in input before passing it to the php language?

can you get information with javascript of an xml loaded in input before passing it to the php language? And if you can, how do you laugh? what I want is to extract the UUID from the xml and depending on the uuid send the variables to php     
asked by 28.06.2018 / 21:11
1
answer

Perform a UNION with Codeigniter

Hi, how can I make a UNION in codeigniter, since I want my table to fit between my two tables. Something like that. [array] => Array ( [0] => stdClass Object ( //TABLA 1...
asked by 17.07.2018 / 16:36
1
answer

Perform an update of an array using pdo

I want to update this table with this array : $datos[] = array('id_comprobantes' => $value['id_comprobantes'], 'estado' => "GENERADO"); With this he sent it to the model: $actu = $this->model->actualizar_e...
asked by 17.07.2018 / 14:51
1
answer

Warning: count (): Parameter must be an array

I have the following error: Warning: count (): Parameter must be an array or an object that implements Countable in ... and I really do not know why you are giving it to me, the code is the following: ' protected static $conexion; private s...
asked by 23.06.2018 / 21:13
1
answer

I always keep the session in php

hi migos I have a login system which when it should expire because I pass it to another page that does not have session start does not expire. that is, it always keeps me full session variables and it is not what I want I leave the code. When I...
asked by 13.06.2018 / 11:00
3
answers

How to demand a specific amount of characters in a field? [closed]

I want a certain field in specific can only have 16 characters, no more, no less, I'm using php.     
asked by 12.06.2018 / 21:04
1
answer

Problem with: "Only variables should be passed by reference in"

I'm starting to learn to program in PHP, and right now I'm doing a simple web. As it says in the title, I have the error of: "Only variables should be passed by reference in". Which is not an error since the code does what I want it to do (which...
asked by 22.06.2018 / 23:57
1
answer

how can I validate input text without using button with PHP, MySQL

Good morning I hope you can help me with the problem I have about the validation of this input text ... I have 2 database tables and I need to validate two fields in one table and one field in another table. The detail is that I scan a barcode a...
asked by 21.06.2018 / 21:23
3
answers

how can I create variables from a for php loop

I have 3 data cod-es, cod-a and counter What I want is that according to the meter n variables are generated Example $campo1 = $_POST['dato']; $campo2 = $_POST['dato2'];     
asked by 21.06.2018 / 23:16