Questions tagged as 'mysql'

1
answer

Ajax sends php query in Mysql

Hello friends I'm studying Ajax I'm trying to make this run of code work, but I still can not. I am trying to do after form produtos be selector is sent to consultarcor.php via Ajax the information to query the colors of each selec...
asked by 29.06.2016 / 15:11
1
answer

add specific line in Mysql

Talk about the person! I am inserting a time (hour: minutes: seconds) into an x column, would you like to know if it is possible to add the current value of the line with the next value that is entered? as if it were a + =. For example: One l...
asked by 10.08.2016 / 22:10
1
answer

sqlalchemy error 1044

I have a Python application that connects to a Mysql database through Sqlalchemy, but I did not develop it. When migrating the database to another server (aws.rds ⇢ go daddy), I changed the connection to the new server and apparently the dat...
asked by 09.08.2016 / 04:22
2
answers

INSERT Sometimes I did not insert all the data [closed]

I have a problem, $alta = $_GET['alt-a']; $altb = $_GET['alt-b']; $altc = $_GET['alt-c']; $altd = $_GET['alt-d']; $correta = $_GET['correta']; $img = $_SESSION['imagem']; $questao = $_SESSION['questao']; $inserta = mysqli_quer...
asked by 30.06.2016 / 22:30
1
answer

Shopping cart sql, php and ajax

I'm doing the shopping cart and would like to know if I should save the products that the user is buying in a table or not, what logic to always show the right product for the right user? I know that I can use the id of the user plus all the c...
asked by 01.07.2016 / 05:54
1
answer

Starting a windows service

I'm setting up a "Service Monitor". My windows server is stopping the service from my database. So I mounted a service validator, but I do not know how to give the start service a new one if it crashes. This is the code of how far I have co...
asked by 15.07.2016 / 04:54
2
answers

I can not back up the mysql database using dump

I have some doubts. I need to make a copy of a database that is not on my machine, but on a server .. I am using the mysql dump command, however when I type the following command mysqldump -u user -password & 1234 obanco > file.sql , it...
asked by 27.06.2016 / 17:24
1
answer

Slider jquery and variable php

I have the following page: <?php ini_set('display_errors', 0 ); error_reporting(0); include"conn_imprep.php"; if (!isset($_SESSION)) session_start(); if (!isset($_SESSION['s_usu_login'])) { session_destroy(); header("Location:log...
asked by 28.06.2016 / 00:55
1
answer

Problem with Dynamic Input

I'm developing a dynamic input that checks whether the database has a value if it does not appear in the input, but I'm having problems with my logic: <?php session_start(); require_once('library.php'); $hoje = date('d/m/Y'); $amanha = date...
asked by 28.06.2016 / 15:41
1
answer

Read data json inserted in mysql

I've seen many tutorials, and everyone includes [] but this one has not, is supposed to be missing something, can you help me? In the database is id date, id being the base code for each product which in turn has a calendar. I just need to have...
asked by 18.06.2016 / 06:05