Questions tagged as 'mysql'

2
answers

Check last records per hour

I'm wondering if you can get the last hour's data from the mysql database, the code below does the sum of values in the table for the last day, $busca = mysql_connect("$local","$usuario","$senha") or die("ERRO AO CONECTAR AO MYSQL, VERIFIQU...
asked by 29.03.2015 / 19:51
1
answer

How do I add an input type="radio" in a form?

How do I add an input type="radio" in a form to the result go to other pages?  And when I edit the form does the radio choice continue to be saved?     
asked by 13.02.2015 / 19:32
1
answer

How to retrieve records that have been updated?

How to keep a record of a record when it has update ? I have a form where it does update of data in MySQL. What I want to do is: When performing a update of a record, it keeps a history of the above. I'm using the framework Codeigni...
asked by 13.02.2015 / 12:57
1
answer

How to query date ranges from another table?

I have a table with date ranges and another with sales data. How can I mount a query that brings me the sales totals in the last 3 periods from the datas_periodos ?? Tabela (datas_periodos): id_datas; data1; data2; id_datas; data1;...
asked by 13.02.2015 / 03:15
1
answer

Request jQuery Post + PHP + MySQL does not write data

I'm doing a registration via jQuery Ajax, so I created the following function: function salvarCadastro(titulo, form, caminho) { var dadosFormulario = $("#" + form).serialize(); var myData = $("#" + form).serialize(); jQuery.ajax({...
asked by 19.02.2015 / 19:07
1
answer

Submit form and update div content

I have two select option with districts and counties. Through JSON I can filter the districts with the councils only now I want to do the search the database. I want to submit form with the two choices and update the div tha...
asked by 18.02.2015 / 23:00
1
answer

Switching from mysql to mysqli [duplicate]

Speaking beauty person? So I'm about 3 days digging and fiddling with this code. All mysql obsolescence errors disappear, and I can navigate normally through the admin area. However, when leaving the area and trying to enter again, he alerts m...
asked by 18.02.2015 / 14:32
1
answer

Store data in the database using PDO :: commit

Hello ... I've never used PDO :: Commit, but now I see the need to use ... and right now, even following the php doc and some examples on the net, I can not store the data ... here's my code : connection.php class Conexao extends PDO {...
asked by 23.02.2015 / 09:43
1
answer

Web Service returning invalid value

Good people, recently I asked a question with the title:    Application presenting this error: Error parsing data org.json.JSONException But by researching I came to a different conclusion in which I had created the question, so I'm creat...
asked by 20.02.2015 / 19:09
1
answer

Carousel Bootstrap + php

I have a carousel in bootstrap, I wanted to do it with 3 images, as per example link But I wanted to make it dynamic, here is my code below: <div class='row'> <div class='col-md-8'> <div class="carousel slide medi...
asked by 24.02.2015 / 03:51