Questions tagged as 'php'

0
answers

synchronize local database with Web [closed]

I'm developing an application in CakePHP, with MySQL database. A part is already working but from the beginning I need a solution to the following problem: My application should work online, but also offline. The internet may fall, in which c...
asked by 20.02.2016 / 20:08
2
answers

Dynamically refresh the php session with jQuery

Well, I have the function below that, with JQuery, I update the display values of the cart values. Everything works: function add(_quant, _preco, _total, _estoque) { quantidade = parseInt($("#"+_quant).val()); estoque = parseI...
asked by 02.06.2016 / 21:25
0
answers

How to create function in PHP to recover password? [closed]

I use 2 pages, one to insert the email ( forgotPassword.php ) that still only has the graphic design. And the recuperar.php that will be used for the user to change their password. My user table (where registered people go) has t...
asked by 27.01.2016 / 19:50
1
answer

How do I use GPS Location in my WEB application?

I'm creating an application and found a barrier, this application is for restaurants to monitor deliveries and likewise the user, also do it, I was doing through checkUp's whenever he stops, like in the post office, only that I realized that the...
asked by 30.03.2016 / 12:58
2
answers

How to make an INNER JOIN does not repeat information

I have the following SQL INNER JOIN : $sqlxml = " SELECT clientes.id, clientes.nome, clientes.status, clientes.cliente, clientes.tipo, clientes.disponibilidade, imoveis.id, imoveis.cod, imoveis.status, imoveis.vanual, COUNT(imoveis.id) AS im...
asked by 14.03.2016 / 17:51
1
answer

Query in a Web Service every 1 minute [closed]

I have a Web Service in JSON, which I'm querying through a PHP page and saving the data to a MySQL database. This Web Service contains information from some sensors and every 1 minute I wanted to do this query and save that data in the database....
asked by 06.04.2016 / 21:54
7
answers

Randomize results with PHP

I have a structure like this (which I created): <div class="banners"> <?php echo do_shortcode("meubanner_1")?> <?php echo do_shortcode("meubanner_2")?> <?php echo do_shortcode("meubanner_3")?> </div>...
asked by 02.09.2014 / 15:18
2
answers

In Magento how to add class to list depending on the attributes to be displayed?

I have foreach which brings me all the children of an X attribute, and I need to add a specific class in the <ul> list to be able to format by CSS according to the Y attribute. However, I can not add the attribute name in the class...
asked by 11.12.2013 / 17:49
6
answers

How to change the background of rows in a table alternately? Supported by browsers

My table is created with a loop in PHP. Do I do this by PHP even adding a condition or has it any better? if ($nomSenha == 'xxxxxxxx') { echo '<table class="pesquisaClientes">'; echo '<tr>'; echo '<td class="id">Id</td...
asked by 12.12.2013 / 12:41
5
answers

Carrousel in php and mysql

I have a "file upload" and needed to show it in a carousel. The path of the images is stored in the database and the images in a folder, of course. I have the following code: <div id="myCarousel" class="carousel slide" data-ride="carousel"&...
asked by 13.07.2015 / 17:49