Questions tagged as 'php'

0
answers

Problem when creating RewriteRule

I have a problem creating RewriteRule in .htaccess It turns out that I have RewriteRule that takes all requests from the url and esoty tried from get another but I have no answer. code: Header set Access-Control-Allow-Origin "*" Optio...
asked by 21.12.2018 / 23:02
1
answer

list files in a directory with codeigniter

I can not list a directory in codeiniter, I just need the names of the files, before I did it like this: setlocale(LC_ALL,"es_ES"); $path="servicios/"; //directorio a listar $directorio=dir($path); $pn= array();//pila de nombres $pf=...
asked by 22.12.2018 / 00:05
1
answer

How to do a little Christmas in PHP?

I have this code that this pine generates me But I want it to come out like this: <html> <body> <h2>Pinos Examen</h2> <form action="examenpinos.php" method="post"> Cantidad de nivel:<br>...
asked by 18.12.2018 / 22:37
0
answers

How to run Google Oauth2 with Vue in dev mode on a PHP server?

I have that problem. I have a server running a system in PHP only with jQuery ... etc. Simple things, but lately I decided to update my site to Vue and I started to make the Login. My experience with Vue is good, I did it through vue-cli and...
asked by 18.12.2018 / 19:39
0
answers

Does not show JSON PHP object

I want to show the result of the query in a JSON but it gives me an empty result, I suspect it is by SCOPE DE PHH, but I have not been able to solve it. <?php include('datos_bd.php'); $conectar = mysqli_connect($nombre_host, $nombre_usuari...
asked by 20.12.2018 / 02:13
0
answers

help with a clone element of jquery

I have a problem with a jquery clone element: I clone the next element. $(document).ready(function(){ $(".alergia-boton").click(function(){ if ($("#id_alergia_paciente").val().length <= 1) { return false } else { $(...
asked by 19.12.2018 / 20:36
1
answer

JSON variable in PHP

I bring the fields of a table via JSON, they are printed perfectly as <td>{{data.Vence}}</td> . My problem is that I want to compare this date with today + 30 to see if it is lower and declare an alarm, but I could not do it si...
asked by 19.12.2018 / 20:25
2
answers

How to create a JSON file from PHP

I need to build a JSON file from PHP with a specific sequence, but I do not know how to build it. The sequence is as follows: [{"jornada":"A","colegios":["Salle","Belemitas"]}, {"jornada":"B","colegios":["Nazaret","Comfama","jega"]}]...
asked by 20.12.2018 / 03:59
1
answer

jquery function inside while loop

I'm using a library called Jquery Bar Rating for the use of rate with 5 stars, I have comments saved in a table with a rate of 1 to 5 stars each, and those comments I printed them with a while: while($row = mysqli_fetch_assoc($res)): echo...
asked by 18.12.2018 / 23:00
0
answers

ERROR: It seems that Html2Pdf dependencies are not installed ... you must install thems with 'composer install'

I get this error when I installed the dependencies as it says the composer and even so I still give that error, what else may be happening I leave the code for the submission of the form: <?php error_reporting(E_ALL ^ E_NOTICE);...
asked by 18.12.2018 / 23:18