Questions tagged as 'mysql'

0
answers

enter date sequence in the bank

When you insert the date into it, it adds + 1 day and inserts again. Any ideas? $valores = range(1,5); $date = '2016-02-06'; for ( $i = 0, $total = count($valores); $i < $total; $i++){...
asked by 06.02.2016 / 19:29
0
answers

WideImage and Mysql and PHP

Good morning! So I have a boring problem here. $nome_produto = $_POST['nome']; $valor_produto = moeda_mysql($_POST['valor']); $categoria_produto = $_POST['categoria']; $descricao_produto = $_POST['descricao']; $estoque_produto...
asked by 08.02.2016 / 10:00
0
answers

Make a select count (*) from these run multiple queries PHP MYSQL

I have a routine that starts with a SELECT, and from this I trigger an email for each record found. The problem is that if I have more than 3,000 records, my program is bursting with memory and the program does not run as it should ... I foun...
asked by 02.02.2016 / 20:22
2
answers

Saving data in an array in Rails

I need to store data from a database search in an array, but with the code below it only stores a value in the array. @busca= Item.find(:all,:conditions=>{:codigo=>params[:codigo]}) @busca.each do|buscador| @novamatriz=Array.new @novamat...
asked by 22.02.2016 / 14:10
0
answers

Error 404 Not Found (nginx)

I have a blog and a few days ago started to give the following error in some pages. 404 Not Found nginx/1.6.2 (Ubuntu) The error log is returning: 2016/02/02 10:44:12 [error] 612#0: *553172 connect() to unix:/var/ru...
asked by 04.02.2016 / 15:04
0
answers

Value calculation between dates for input fields

People do not know anything about java and I believe that's what I'm going to need. Next situation: Below is the script to generate the amount with interest and fine of the value between due date and payment date and their respective fields:...
asked by 04.02.2016 / 03:53
0
answers

Insert and update method does not work on azure

Good afternoon Friends I'm starting in asp net development and I made a web form application and put it in the azure. It is a simple application of cardapio that accesses a mysql database created by azure as well. What happens is that in visu...
asked by 22.01.2016 / 22:28
1
answer

Error displaying image inside a td in php

I am creating a panel and I make a calculation of the time that an OS is open and depending on the result shows a colored ball on the table ... it just does not work when executing this error:    Parse error: syntax error, unexpected 'src' (T...
asked by 22.01.2016 / 22:33
3
answers

Join href to a button

In a fomulário I have this link: <a href="chk-gerente.php?nro_pergunta=<?php echo $nro_pergunta; ?>">Próximo</a> And this button: <button type="submit" class="btn btn-default" >REPONDER</button> Pleas...
asked by 13.02.2016 / 03:11
0
answers

Query with sql does not return when using WHERE

I have a query that should bring the name of the users who received a message sent by a user: SELECT msg.msg_content ,usr.user_name FROM message AS msg INNER JOIN usuarios AS usr ON msg.user_id_out = usr.user_ssid WHERE usr.user_...
asked by 24.02.2016 / 17:26