Questions tagged as 'php'

2
answers

Problems generating a table with php from a two-dimensional array

Hello this is my code and although I put the rowspan to 3 does not generate the table correctly, I try to generate a table from a two-dimensional array with PHP but when formatting the table does not come out as it should, I can not find the err...
asked by 09.01.2018 / 23:55
2
answers

Problems with a Query in wordpress

I'm doing a function to bring some courses for that I have a post type where I charge the courses and a taxonomy of marks that I assign to which course they belong to show this I have a section that is a filtering where I have to tell you which...
asked by 16.04.2018 / 20:06
1
answer

Extract random elements from an array in php

Hi, I would like some help or explanation on how to extract more than one result from an array in a random way using php. Until the moment and achieved this code: <?php $N = mt_rand(2,4); $ele = array('#instagood','#love','#beautiful','#me'...
asked by 12.01.2018 / 21:02
1
answer

ERROR mysql_num_rows () expects parameter 1 to be resource, boolean given

I have an error in my code: $conexion = connect::con(); $compro_cod = "SELECT * FROM producte WHERE codprod = '$codprod'"; $existe = mysql_query($conexion,$compro_cod); if (mysql_num_rows($existe) > 0){ print_r('Error: Ya existe ese...
asked by 28.12.2017 / 18:17
1
answer

How to read the Laravel request data

I need to extract what is in request- > itemes Request {#40 ▼ #json: null #convertedFiles: null #userResolver: Closure {#472 ▶} #routeResolver: Closure {#480 ▶} +attributes: ParameterBag {#42 ▶} +request: ParameterBag {#48 ▼...
asked by 29.12.2017 / 13:59
2
answers

problem when saving records with fetch - error Undefined index

Hi, I have problems within the if (isActive ($ user)) where I want to get the values id, password, id_type, are not saving and I get this message Notice: Undefined index: id in C:\xampp\htdocs\login_oracle\funcs\funcs.php on line 291 Notice:...
asked by 13.12.2017 / 00:46
1
answer

get value of a select from a jquery

good evening I have the following script: $(document).ready(function() { $.ajax({ dataType: "json", data: [], url: "https://ubicaciones.paginasweb.cr/provincias.json",...
asked by 14.12.2017 / 06:21
2
answers

Javascript TypeError: variable undefined

I have the following problem in my javacript code, I have searched for all kinds of solutions and nothing. Here I have my code ready and running trial version ajax.html there all var arreglo; var area = new Array(); v...
asked by 15.12.2017 / 22:06
1
answer

How to "activate" / "deactivate" a record using Ajax

After several attempts and searches I turn to you for the following problem. In a table I have a field in the DB that gives me the possibility to Activate or Not a record (for example, so that it can not be seen). I have a form to update high, b...
asked by 22.01.2018 / 18:53
1
answer

The value of variable is deleted when passing it from js to php

I'm doing a shipment by ajax from js to php. I am sending an array of objects using angular, here my code. $scope.updateRecipe = function() { //Se hace petición ajax para agregar el producto $http( { //Se elige el metodo...
asked by 19.01.2018 / 23:35