Questions tagged as 'php'

0
answers

Insert a laravel Array to MongoDB

I need to know how I can insert an array (that was obtained from a MySQL query) to mongodb (it should be inserted in the same way in mongodb as an array), this is what I have done but it does not keep me as it should be. public function create...
asked by 07.12.2018 / 21:23
1
answer

Send values from a mysql select to several inputs in php

I have a selectbox populated from mysql from a table with two fields (id and name). The selectbox shows the list of names. I need that when selecting an element of the select send the id to an input text and the name to another input text. For n...
asked by 04.12.2018 / 16:07
1
answer

The data is not recorded in my database

<?php $X = mysqli_connect("localhost","root","");//or die("<h2>NO se encuentra el servidor </h2>"); //mysqli_select_db("abogados",$X) or die("<h2>error conexion </h2>"); if(!$X){ die("<h2>NO se...
asked by 04.12.2018 / 14:59
2
answers

Collect or compare variables in PHP

I have some PHP variables, which are these: <?php $on = "ON"; $off = "OFFLINE"; $disabled ="disabled"; ?> Well, what I want to do is a bit more automatic, if I use the variable " $off " automatically in another sector the variab...
asked by 04.12.2018 / 23:11
0
answers

doubt roles laravel 5.5

I have the following code in a blade template, and I have given admin permissions to the entire menu, the question is ... what can I do if I want to give permission to two other users to that same menu? Is there any way to do this? @exte...
asked by 04.12.2018 / 01:31
1
answer

Apache shows me the php code instead of executing it

Good I come with this question that I have tried to find solution but I can not find it I have little experience in linux and I am learning, the version where I have everything installed is ubuntu 16 I am using vagrant creat...
asked by 05.12.2018 / 00:25
0
answers

How do I get the longitude and latitude where the user is in laravel?

I write this time because how can I get the longitude and latitude of the user who started the session ?, am I working with laravel or should I add google maps, also how can I get the 10 closest cities? although if it does not find the same I vi...
asked by 27.11.2018 / 12:28
0
answers

Pass php parameter to JasperReports

I have a parameter java.util.Collection called parameters and my example query would be like this: SELECT nombre FROM persona WHERE $X{IN, id, parametros} . My question is how do I pass the parameter from php? I used this function t...
asked by 04.12.2018 / 14:54
0
answers

popupalert javascript and php

When executing this code it tells me Undefined offset in the line of the query. <p> id="demo"></p> <script> function myFunction() { var txt; if...
asked by 01.12.2018 / 00:46
2
answers

problem when creating JSON

very good afternoon, community is passing me that when creating a json this brings me the duplicate data in the following way in the json we see twice the same information duplicate and only need the one that has the names of the fields...
asked by 30.11.2018 / 19:52