Questions tagged as 'php'

2
answers

Problems with dynamic select - dependent ajax, mysql and php

I try to create a dynamic / dependent select with ajaxx and this even though it generates return results, I can not give value to the html element. Here the code: <script> // Agarra el ajaxx de país. $(document).ready(function...
asked by 15.12.2018 / 03:33
1
answer

Store name and file path uploaded in php

Gentlemen, cordial greetings to all. I have a script to upload files to a folder on the server with php, initially I have the form that captures the file. If I include other information to the form, how could I store the name and path of the...
asked by 17.12.2018 / 00:24
2
answers

Send JSON php

I am having problems sending a JSON from a PHP and MySQL webService, I leave the code of the query and the fetch assoc, the query has already been checked and it is correct, in phpMyAdmin it makes me perfect, the problem is that when I receive t...
asked by 21.11.2018 / 19:33
1
answer

Data from two tables in the same query

I need to show the matching records of two tables, sorted by date. I can show them in the way I show in my code, but of course, first show the data of one table and then the other. I think the necessary thing is to join the two consultations, bu...
asked by 25.11.2018 / 17:34
3
answers

Receive variables post and write them in Html

I am receiving data by post from an android system, when responding with echo , this data reaches android. Now I want to use this data to use it in an html page, how can I do it? By the way, I use the Slim framework. <?php req...
asked by 11.03.2016 / 19:38
3
answers

Change color of a DIV with PHP

Good, I have a div in Bootstrap in blue and a% code in%. I would like to change the color of PHP automatically to red if the content is less than div . <div class="col-lg-3 col-md-6"> <div class='&l...
asked by 16.03.2016 / 13:27
1
answer

Problem with php spacing in file handling

I explain the program Create a .txt file based on an array. Pressing the "read" button reads a file using the read_file function. If the "sort" button is pressed, a text file is searched, in this case the one that was created before and...
asked by 23.02.2016 / 02:28
3
answers

get the user name to show it once the session starts with php mysql html

I have a question with this code is that it does not show me the name of the user, in itself what I ask is how you can show the name of the user who started the session, and who appears in the corner of the website thanks to beforehand note:...
asked by 08.12.2018 / 21:17
1
answer

I will be able to do in my query a SELECT with a date range according to the current month

I have the following query: $analisis = "SELECT usuario, users.nombre AS 'nombre', users.email AS 'email', SUM(monto) AS 'monto_total', COUNT( usuario ) AS 'num' FROM pedidos...
asked by 20.11.2018 / 16:02
1
answer

Compress if with array

I have the following code that I want to "compress" or simplify Could it be done with an array? <?php if ($row['tecnico'] == $_SESSION['username'] or $_SESSION['username'] == "nameA" or $_SESSION['username'] == "nameB" or...
asked by 30.10.2018 / 19:01