Questions tagged as 'php'

1
answer

Pass variable int to string

Sorry for the question I asked, but I tried to pass a numeric variable to a string, but it does not take results. For example, in my database I have a field called "plano" type varchar and I need to save it in this way 088, but when I print the...
asked by 16.11.2018 / 12:25
1
answer

How to work with Highcharts and MYSQL Database

I try to display information from the total column of my database with the following DEMO : link This is the table I want to work with: But I do not know how it works. It is the first time that I am working with Highcharts, a...
asked by 03.07.2016 / 23:04
1
answer

Subtract days in php

Tengon in a variable the days of expiration and I have to make it show the days that are missing to win. <?php $fechaApertura = '02/08/2018'; $fechaVencimiento = '08/11/2018'; $dias = 6; //6 dias por vencer $restaDias = $fechaVencimiento -...
asked by 03.11.2018 / 01:40
1
answer

help query mysql does not return anything

Good I have this query but it does not return anything to me, only it returns to me when all the data are complete, if only I put a city does not return nothing try to thunder the query but even so it does not return anything, as q does not ente...
asked by 02.11.2018 / 18:23
2
answers

Call a php function

Good I have the following doubt I have the following functions PHP in a file, the thing is that I want that by pressing a button (delete) the function is called delete and delete the record. How can you do that without calling a funcio...
asked by 02.11.2018 / 00:44
1
answer

Change PHP STATUS to pick it up from Unity

I have a file in php where I receive data from an application in Unity, all good until after validating the information I need to recover a STATUS . I'm using this way of setting the STATUS in php ; if(count(mysql_...
asked by 02.11.2018 / 16:56
1
answer

MySQL display results from id_cate sorted by id_subcate

Hello, how are you? I bother you with a question?. I decided to group products according to the subcategory (id_subcate) but when accessing the Category (id_cate) I start from the base, as well comments and made me realize @amenadiel,  ...
asked by 03.11.2018 / 14:11
2
answers

How can I upload a file to my server using PHP, AJAX, JAVASCRIPT?

I have problems uploading a file to my server, I CAN NOT read the $ _FILES ['file'] ['name'] after having gone through AJAX, I use the following code: HTML index.php <html> <head> <meta charset="UTF-8"> <scrip...
asked by 26.10.2018 / 05:45
1
answer

Problem showing content dependent on a SELECT in Laravel

I have a table called 'AUTOS' and 'COMPANIES' , respectively, in my database in phpmyadmin. I'm working on < strong> PHP with LARAVEL. I have a function in Javascript which should show me a certain number of records according to the...
asked by 29.10.2018 / 13:51
1
answer

auto increase with ajax

I have a voting system that should autoincrement when clicking on a link, basically the structure is as follows: <ul> <li>Uno <a href="#">0</a></li> <li>Dos <a href="#">0</a></li&g...
asked by 25.10.2018 / 07:00