Questions tagged as 'mysql'

1
answer

Ajax crashes the computer

Review the code below function update(){ $.ajax({ url : 'http://localhost/sistema', type : 'get', dataType : 'json', success : function( data ){ console.log('Mostrar dados: '+.data.dado); } }) } setInterval(fun...
asked by 24.04.2018 / 16:07
2
answers

"Convert" an HTML list to MySQL with PHP

I have a large HTML list with about 106000 lines of code. Where these lines are records and these records are subdivided into: 6 lines of information about a game (as name and year of publication) 1 line break So, each "record" in my HT...
asked by 10.09.2014 / 07:45
1
answer

Connection MySQL Local Database and Online Server

I am developing an application using Java Swing + MySQL database, however I am in analysis of making an online platform that talks to the local application, using the database to interconnect the data, because in reality the system itself they t...
asked by 02.09.2014 / 18:47
1
answer

SQL Group query with more than one distinguished attribute

I have an application that generates approximately 25000 records per day in DB. This will generate a large amount of id's per day in the user's DB. According to the user's business rule, only failed inspections ( is_ok = 0 ) must be log...
asked by 30.08.2014 / 22:47
1
answer

Login with permission levels [duplicate]

I have a login system that, in case the user is an administrator, will be redirected to one page and if it is common, for another. This column ativo is what defines whether a user is admin (1) or not (0). identifiant | senha |...
asked by 25.09.2017 / 14:59
2
answers

Convert date to Unix timestamp

I have a table in a MySQL database that has a date column VARCHAR , type 20-09-2017 and I need to migrate this column to a bigint(8) column that uses the Unix date format timestamp . How to do this?     
asked by 20.09.2017 / 14:35
1
answer

Validate data with PDO

I'm migrating my php code in which I was using sql query for PDO, but I'm finding it difficult to validate data with this. NOTE: I already have a functional file that searches the database, my difficulty is really to compare it with POST and...
asked by 20.09.2017 / 17:03
1
answer

PDO suppresses columns with equal names

I noticed that using PDO to execute the query below, the results are conflicting with PhpMyadmin and Console do Mysql : SELECT a.*, n.* FROM arquivo AS a INNER JOIN numeracao AS n ON (a.id_numeracao =...
asked by 08.03.2014 / 06:02
1
answer

Problems sending FILE to Database

I'm having a problem sending FILE data to DB. With the help of @zuul I came to this problem. <?php require("conectar.php"); //chama o arquivo de conexão ao BD if (isset($_POST['Nome'])) { $Nome = $_POST['Nome']; } $Morada = $_POST['M...
asked by 28.02.2014 / 12:18
1
answer

Check registrations between today and 10 days in the future to send by email

I'm using PHPMailer to send an email with data when it's 10 days to complete. When I send the email, all records are appearing when the idea is to appear the registrations between today and 10 days in the future. Inquiry $sql = " SELECT t...
asked by 03.03.2014 / 12:17